forked from External/mage
Merge branch 'master' of https://github.com/magefree/mage.git into MorphRework_v2
# Conflicts: # Mage.Sets/src/mage/cards/b/Banefire.java
This commit is contained in:
commit
26af2602e4
484 changed files with 6960 additions and 5629 deletions
|
|
@ -1480,6 +1480,13 @@ public abstract class AbilityImpl implements Ability {
|
|||
}
|
||||
|
||||
public AbilityImpl copyWithZone(Zone zone) {
|
||||
if (this instanceof MageSingleton) {
|
||||
// not safe to change zone for singletons
|
||||
// in theory there could be some sort of wrapper to effectively change
|
||||
// the zone here, but currently no use of copyWithZone actually needs
|
||||
// to change the zone of any existing singleton abilities
|
||||
return this;
|
||||
}
|
||||
AbilityImpl copy = ((AbilityImpl)this.copy());
|
||||
copy.zone = zone;
|
||||
copy.newId();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue