Restriction: fix Bestow with check if it is already animated under lki

This commit is contained in:
Hanmac
2018-05-05 16:47:48 +02:00
parent d7e701d7a5
commit 0033edbeda

View File

@@ -218,16 +218,19 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
// for Bestow need to check the animated State
if (sa.isSpell() && sa.hasParam("Bestow")) {
// already bestowed or in battlefield, no need to check for spell
if (c.isBestowed() || c.isInZone(ZoneType.Battlefield)) {
if (c.isInZone(ZoneType.Battlefield)) {
return false;
}
if (!c.isLKI()) {
cp = CardUtil.getLKICopy(c);
}
// if card is lki and bestowed, then do nothing there, it got already animated
if (!(c.isLKI() && c.isBestowed())) {
if (!c.isLKI()) {
cp = CardUtil.getLKICopy(c);
}
if (!cp.isBestowed()) {
cp.animateBestow();
if (!cp.isBestowed()) {
cp.animateBestow(!cp.isLKI());
}
}
}