forked from External/mage
Added Mana Drain and Spell Crumple. Fixed replacement effect of Hinder.
This commit is contained in:
parent
97276cbd2a
commit
48e8be4fc2
14 changed files with 599 additions and 48 deletions
|
|
@ -99,6 +99,10 @@ public class MageObjectReference implements Comparable<MageObjectReference> {
|
|||
return hash;
|
||||
}
|
||||
|
||||
public boolean refersTo(UUID id, Game game) {
|
||||
return refersTo(game.getObject(id));
|
||||
}
|
||||
|
||||
public boolean refersTo(Permanent permanent) {
|
||||
return permanent.getZoneChangeCounter()== zoneChangeCounter && permanent.getId().equals(sourceId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue