forked from External/mage
[KHM] fixed Orvar, the All-Form triggered ability not working correctly
This commit is contained in:
parent
25f929d70e
commit
ece9108695
3 changed files with 37 additions and 8 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package mage;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.cards.Card;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
|
|
@ -52,6 +53,15 @@ public class MageObjectReference implements Comparable<MageObjectReference>, Ser
|
|||
this.zoneChangeCounter = -1;
|
||||
}
|
||||
|
||||
public MageObjectReference(Ability source) {
|
||||
this(source, 0);
|
||||
}
|
||||
|
||||
public MageObjectReference(Ability source, int modifier) {
|
||||
this.sourceId = source.getSourceId();
|
||||
this.zoneChangeCounter = source.getSourceObjectZoneChangeCounter() + modifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sourceId can be null
|
||||
* @param game
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue