mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
[CHK] fixed implementation of Hankyu
This commit is contained in:
parent
445b51b98b
commit
63de2dc258
1 changed files with 6 additions and 2 deletions
|
@ -145,8 +145,12 @@ class HankyuCost extends UseAttachedCost {
|
|||
if (!this.mageObjectReference.refersTo(attachmentId, game)) {
|
||||
continue;
|
||||
}
|
||||
int count = permanent.getCounters(game).getCount(CounterType.AIM);
|
||||
permanent.removeCounters(CounterType.AIM.createInstance(count), source, game);
|
||||
Permanent equipment = mageObjectReference.getPermanent(game);
|
||||
if (equipment == null) {
|
||||
continue;
|
||||
}
|
||||
int count = equipment.getCounters(game).getCount(CounterType.AIM);
|
||||
equipment.removeCounters(CounterType.AIM.createInstance(count), source, game);
|
||||
paid = true;
|
||||
removedCounters = count;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue