* Made a lot of changes to handling of continuous and triggered abilities. This should fix the problems with Mage Singletons like Flyinging / Intimidate / Reach not working. Fixed also #533 and some other problems with copy effects of cards like Clone that did not end if e.g. Clone left the battlefield.

This commit is contained in:
LevelX2 2014-12-25 02:07:40 +01:00
parent f9b80e5c81
commit 4f1368f3de
25 changed files with 316 additions and 169 deletions

View file

@ -536,7 +536,13 @@ public abstract class AbilityImpl implements Ability {
@Override
public void setSourceId(UUID sourceId) {
this.sourceId = sourceId;
if (this.sourceId == null) {
this.sourceId = sourceId;
} else {
if (!(this instanceof MageSingleton)) {
this.sourceId = sourceId;
}
}
}
@Override