mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08: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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue