mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
fixed Runic Armasaur triggering off of your abilities
This commit is contained in:
parent
5c7993af38
commit
c59457b2e5
1 changed files with 3 additions and 1 deletions
|
|
@ -66,7 +66,9 @@ class RunicArmasaurTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
@Override
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
StackAbility stackAbility = (StackAbility) game.getStack().getStackObject(event.getSourceId());
|
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);
|
MageObject abilitySourceObject = stackAbility.getSourceObject(game);
|
||||||
return abilitySourceObject != null && (abilitySourceObject.isLand() || abilitySourceObject.isCreature());
|
return abilitySourceObject != null && (abilitySourceObject.isLand() || abilitySourceObject.isCreature());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue