mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
minor change to last NPE fix
This commit is contained in:
@@ -567,11 +567,12 @@ public class SpellPermanent extends Spell {
|
|||||||
else {
|
else {
|
||||||
throw new InvalidParameterException("Either ai or sa must be not null!");
|
throw new InvalidParameterException("Either ai or sa must be not null!");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (exSA.getActivatingPlayer() == null) {
|
if (exSA.getActivatingPlayer() == null) {
|
||||||
throw new InvalidParameterException("Executing SpellAbility for Replacement Effect has no activating player");
|
throw new InvalidParameterException("Executing SpellAbility for Replacement Effect has no activating player");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ETBReplacement uses overriding abilities.
|
// ETBReplacement uses overriding abilities.
|
||||||
// These checks only work if the Executing SpellAbility is an
|
// These checks only work if the Executing SpellAbility is an
|
||||||
// Ability_Sub.
|
// Ability_Sub.
|
||||||
|
|||||||
Reference in New Issue
Block a user