Minor modification to Hidetsugu's Second Rite. AI will only play this card when human at 10 life. Human no longer has the same restriction.

This commit is contained in:
jendave
2011-08-06 05:05:04 +00:00
parent f501e47557
commit 529d0cf839

View File

@@ -10108,12 +10108,21 @@ public class CardFactory implements NewConstants {
if(life.getLife() == 10) life.subtractLife(10);
}
/*
@Override
public boolean canPlay() {
String opponent = AllZone.GameAction.getOpponent(card.getController());
PlayerLife p = AllZone.GameAction.getPlayerLife(opponent);
return p.getLife() == 10;
}
*/
@Override
public boolean canPlayAI() {
PlayerLife humanLife = AllZone.GameAction.getPlayerLife(Constant.Player.Human);
return humanLife.getLife() == 10;
}
};
spell.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
card.clearSpellAbility();