hasSecondStrike()
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
4 posts
• Page 1 of 1
hasSecondStrike()
by DennisBergkamp » 16 Nov 2009, 05:06
Zerker,
I was having some trouble with your new hasSecondStrike() method. For some reason, normal combat damage does not happen when using this method. If I replace them with the old (not so elegant) :
I was having some trouble with your new hasSecondStrike() method. For some reason, normal combat damage does not happen when using this method. If I replace them with the old (not so elegant) :
- Code: Select all
if(!att.get(i).hasFirstStrike() || (att.get(i).hasFirstStrike() && att.get(i).hasDoubleStrike()) )
- Code: Select all
if(!attacking.get(i).hasFirstStrike() || (attacking.get(i).hasFirstStrike() && attacking.get(i).hasDoubleStrike() )){
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: hasSecondStrike()
by zerker2000 » 16 Nov 2009, 05:55
Huh? That IS the secondStrike code...
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
- zerker2000
- Programmer
- Posts: 569
- Joined: 09 May 2009, 21:40
- Location: South Pasadena, CA
- Has thanked: 0 time
- Been thanked: 0 time
Re: hasSecondStrike()
by DennisBergkamp » 16 Nov 2009, 06:01
Yes, exactly!
Which is why I'm so confused
Which is why I'm so confused

-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: hasSecondStrike()
by Marek14 » 16 Nov 2009, 07:50
I wonder - does the code work correctly if a creature gains or loses first strike after first strike damage?
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 19 guests