mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed AI targeting for Time Stretch and Time Warp.
- Added some performance enhancement in the addDamage iteration code (probably won't matter much).
This commit is contained in:
@@ -979,7 +979,7 @@ public class CardFactory implements NewConstants {
|
||||
sbD.append(Math.abs(NumDefense[0]) + " and gains " + Keyword[0] + " until end of turn.");
|
||||
}
|
||||
//if (!sbD.toString().isEmpty())
|
||||
if (!sbD.toString().trim().equals(""))
|
||||
if (sbD.toString().trim().length()!=0)
|
||||
d = sbD.toString();
|
||||
|
||||
if (k.length > 2)
|
||||
@@ -15999,7 +15999,7 @@ return land.size() > 1 && CardFactoryUtil.AI_isMainPhase();
|
||||
}
|
||||
};
|
||||
card.clearSpellAbility();
|
||||
spell.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||
spell.setChooseTargetAI(CardFactoryUtil.AI_targetComputer());
|
||||
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
|
||||
card.addSpellAbility(spell);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
Reference in New Issue
Block a user