mirror of
https://github.com/magefree/mage.git
synced 2026-01-17 17:06:45 -08:00
* 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:
parent
f9b80e5c81
commit
4f1368f3de
25 changed files with 316 additions and 169 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue