mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed a bug recenttly introduced to handling of triggered abilities .
This commit is contained in:
parent
1b7824626e
commit
cc67312850
2 changed files with 3 additions and 2 deletions
|
@ -892,7 +892,9 @@ public abstract class AbilityImpl implements Ability {
|
|||
}
|
||||
|
||||
if (object != null && !object.getAbilities().contains(this)) {
|
||||
if (!(object instanceof Permanent)) {
|
||||
if (object instanceof Permanent) {
|
||||
return false;
|
||||
} else {
|
||||
// check if it's an ability that is temporary gained to a card
|
||||
Abilities<Ability> otherAbilities = game.getState().getAllOtherAbilities(this.getSourceId());
|
||||
if (otherAbilities == null || !otherAbilities.contains(this)) {
|
||||
|
|
|
@ -35,7 +35,6 @@ import mage.constants.SetTargetPointer;
|
|||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue