fixed Runic Armasaur triggering off of your abilities

This commit is contained in:
Evan Kranzler 2018-06-22 08:26:32 -04:00
parent 5c7993af38
commit c59457b2e5

View file

@ -66,7 +66,9 @@ class RunicArmasaurTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
StackAbility stackAbility = (StackAbility) game.getStack().getStackObject(event.getSourceId());
if (stackAbility != null && stackAbility.getAbilityType() == AbilityType.ACTIVATED) {
if (stackAbility != null
&& stackAbility.getAbilityType() == AbilityType.ACTIVATED
&& game.getOpponents(this.getControllerId()).contains(stackAbility.getControllerId())) {
MageObject abilitySourceObject = stackAbility.getSourceObject(game);
return abilitySourceObject != null && (abilitySourceObject.isLand() || abilitySourceObject.isCreature());
}