- used the correct method for checking the source permanent in the last commit

This commit is contained in:
jeffwadsworth 2020-08-14 19:52:38 -05:00
parent 012558b3ae
commit bdac0b3d72

View file

@ -69,7 +69,7 @@ class RunicArmasaurTriggeredAbility extends TriggeredAbilityImpl {
if (stackAbility != null
&& stackAbility.getAbilityType() == AbilityType.ACTIVATED
&& game.getOpponents(this.getControllerId()).contains(stackAbility.getControllerId())
&& stackAbility.getSourceObjectIfItStillExists(game).isPermanent()) { // must be a permanent
&& stackAbility.getSourcePermanentOrLKI(game) != null) { // must be a permanent
MageObject abilitySourceObject = stackAbility.getSourceObject(game);
return abilitySourceObject != null
&& (abilitySourceObject.isLand()