Planeswalker Redirection
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
5 posts
• Page 1 of 1
Planeswalker Redirection
by 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.
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
by moomarc » 14 Jul 2012, 16:25
Just saw this as well. Great stuff! 

-Marc
-
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
by 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
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
-
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
by friarsol » 14 Jul 2012, 20:15
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.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.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Planeswalker Redirection
by Sloth » 14 Jul 2012, 20:23
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.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.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 17 guests