mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
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:
@@ -10108,12 +10108,21 @@ public class CardFactory implements NewConstants {
|
|||||||
if(life.getLife() == 10) life.subtractLife(10);
|
if(life.getLife() == 10) life.subtractLife(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlay() {
|
public boolean canPlay() {
|
||||||
String opponent = AllZone.GameAction.getOpponent(card.getController());
|
String opponent = AllZone.GameAction.getOpponent(card.getController());
|
||||||
PlayerLife p = AllZone.GameAction.getPlayerLife(opponent);
|
PlayerLife p = AllZone.GameAction.getPlayerLife(opponent);
|
||||||
return p.getLife() == 10;
|
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());
|
spell.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||||
card.clearSpellAbility();
|
card.clearSpellAbility();
|
||||||
|
|||||||
Reference in New Issue
Block a user