forked from External/mage
[EVE] fixed implementation of Hotheaded Giant
This commit is contained in:
parent
63de2dc258
commit
6c643fdc5e
5 changed files with 63 additions and 11 deletions
|
|
@ -147,6 +147,14 @@ public class MageObjectReference implements Comparable<MageObjectReference>, Ser
|
|||
return false;
|
||||
}
|
||||
|
||||
public boolean refersTo(Ability source, Game game) {
|
||||
if (source == null || !source.getSourceId().equals(sourceId)) {
|
||||
return false;
|
||||
}
|
||||
return zoneChangeCounter * source.getSourceObjectZoneChangeCounter() == 0
|
||||
|| zoneChangeCounter == source.getSourceObjectZoneChangeCounter();
|
||||
}
|
||||
|
||||
public Permanent getPermanent(Game game) {
|
||||
Permanent permanent = game.getPermanent(sourceId);
|
||||
if (permanent != null && permanent.getZoneChangeCounter(game) == zoneChangeCounter) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue