Fixed a bug recenttly introduced to handling of triggered abilities .

This commit is contained in:
LevelX2 2015-04-09 15:12:31 +02:00
parent 1b7824626e
commit cc67312850
2 changed files with 3 additions and 2 deletions

View file

@ -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)) {

View file

@ -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;
/**