mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Merge branch 'Hanmac-master-patch-98814' into 'master'
Spell:checkOtherRestrictions check CantBeCast for changed Cardface Closes #1198 See merge request core-developers/forge!2333
This commit is contained in:
@@ -1708,7 +1708,7 @@ public class AbilityUtils {
|
|||||||
if (res.checkTimingRestrictions(tgtCard, newSA)
|
if (res.checkTimingRestrictions(tgtCard, newSA)
|
||||||
// still need to check the other restrictions like Aftermath
|
// still need to check the other restrictions like Aftermath
|
||||||
&& res.checkOtherRestrictions(tgtCard, newSA, controller)
|
&& res.checkOtherRestrictions(tgtCard, newSA, controller)
|
||||||
&& newSA.checkOtherRestrictions()) {
|
&& newSA.checkOtherRestrictions(tgtCard)) {
|
||||||
sas.add(newSA);
|
sas.add(newSA);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,11 +184,10 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return checkOtherRestrictions();
|
return checkOtherRestrictions(card);
|
||||||
} // canPlay()
|
} // canPlay()
|
||||||
|
|
||||||
public boolean checkOtherRestrictions() {
|
public boolean checkOtherRestrictions(final Card source) {
|
||||||
final Card source = this.getHostCard();
|
|
||||||
Player activator = getActivatingPlayer();
|
Player activator = getActivatingPlayer();
|
||||||
final Game game = activator.getGame();
|
final Game game = activator.getGame();
|
||||||
// CantBeCast static abilities
|
// CantBeCast static abilities
|
||||||
|
|||||||
Reference in New Issue
Block a user