mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[ZNR] Implemented Moraug, Fury of Akoum
This commit is contained in:
parent
fda1d51a5b
commit
29b5d15ca1
3 changed files with 185 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.watchers.common;
|
||||
|
||||
import mage.MageObjectReference;
|
||||
|
|
@ -43,6 +42,10 @@ public class AttackedThisTurnWatcher extends Watcher {
|
|||
return this.attackedThisTurnCreaturesCounts;
|
||||
}
|
||||
|
||||
public int getAttackCount(Permanent permanent, Game game) {
|
||||
return this.attackedThisTurnCreaturesCounts.getOrDefault(new MageObjectReference(permanent, game), 0);
|
||||
}
|
||||
|
||||
public boolean checkIfAttacked(Permanent permanent, Game game) {
|
||||
for (MageObjectReference mor : attackedThisTurnCreatures) {
|
||||
if (mor.refersTo(permanent, game)) {
|
||||
|
|
@ -58,5 +61,4 @@ public class AttackedThisTurnWatcher extends Watcher {
|
|||
this.attackedThisTurnCreatures.clear();
|
||||
this.attackedThisTurnCreaturesCounts.clear();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue