It is currently 10 Sep 2025, 20:57
   
Text Size

Planeswalker Redirection

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Planeswalker Redirection

Postby friarsol » 14 Jul 2012, 16:22

Damn Hellfish. This is genius.

We should probably flesh out DealDamage AI to properly target Human when they actually want to target a PW.

We should be able to phase out the simplified Targeting {Tgt}[CP, P, C] now that we don't need it for including Planeswalkers.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Planeswalker Redirection

Postby moomarc » 14 Jul 2012, 16:25

Just saw this as well. Great stuff! =D>
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Planeswalker Redirection

Postby Hellfish » 14 Jul 2012, 16:56

*phew* I thought you had found a problem already. :)

There is rudimentary AI in that if it can't put you in burn range (<5 I think I put) it will choose to redirect. EDIT: Nvm, I think that check is ineffective, because of AF_DealDamage AI as Sol said.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: Planeswalker Redirection

Postby friarsol » 14 Jul 2012, 20:15

Hellfish wrote:There is rudimentary AI in that if it can't put you in burn range (<5 I think I put) it will choose to redirect. EDIT: Nvm, I think that check is ineffective, because of AF_DealDamage AI as Sol said.
It might be functional enough for things like Pestilence, but with some added code in DealDamage the AI can start targeting the PWs with more focus.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Planeswalker Redirection

Postby Sloth » 14 Jul 2012, 20:23

Hellfish wrote:*phew* I thought you had found a problem already. :)

There is rudimentary AI in that if it can't put you in burn range (<5 I think I put) it will choose to redirect. EDIT: Nvm, I think that check is ineffective, because of AF_DealDamage AI as Sol said.
I agree with Sol. It's not really ineffective (it should work with Blightning, Anathemancer, Cinder Pyromancer, etc.). Since there hasn't been any code in DealDamageCanPlayAI that targets Planeswalkers this is a big improvement.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 17 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 17 users online :: 0 registered, 0 hidden and 17 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 17 guests

Login Form