mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +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)
|
||||
// still need to check the other restrictions like Aftermath
|
||||
&& res.checkOtherRestrictions(tgtCard, newSA, controller)
|
||||
&& newSA.checkOtherRestrictions()) {
|
||||
&& newSA.checkOtherRestrictions(tgtCard)) {
|
||||
sas.add(newSA);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,11 +184,10 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable
|
||||
}
|
||||
}
|
||||
|
||||
return checkOtherRestrictions();
|
||||
return checkOtherRestrictions(card);
|
||||
} // canPlay()
|
||||
|
||||
public boolean checkOtherRestrictions() {
|
||||
final Card source = this.getHostCard();
|
||||
public boolean checkOtherRestrictions(final Card source) {
|
||||
Player activator = getActivatingPlayer();
|
||||
final Game game = activator.getGame();
|
||||
// CantBeCast static abilities
|
||||
|
||||
Reference in New Issue
Block a user