mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Restriction: fix Bestow with check if it is already animated under lki
This commit is contained in:
@@ -218,16 +218,19 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
|||||||
// for Bestow need to check the animated State
|
// for Bestow need to check the animated State
|
||||||
if (sa.isSpell() && sa.hasParam("Bestow")) {
|
if (sa.isSpell() && sa.hasParam("Bestow")) {
|
||||||
// already bestowed or in battlefield, no need to check for spell
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if card is lki and bestowed, then do nothing there, it got already animated
|
||||||
|
if (!(c.isLKI() && c.isBestowed())) {
|
||||||
if (!c.isLKI()) {
|
if (!c.isLKI()) {
|
||||||
cp = CardUtil.getLKICopy(c);
|
cp = CardUtil.getLKICopy(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cp.isBestowed()) {
|
if (!cp.isBestowed()) {
|
||||||
cp.animateBestow();
|
cp.animateBestow(!cp.isLKI());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user