mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 21:42:07 -08:00
[KHM] fixed Codespell Cleric not triggering correctly
This commit is contained in:
parent
b45c176a84
commit
14f7c02b1f
3 changed files with 109 additions and 22 deletions
|
|
@ -4,7 +4,6 @@ import mage.MageObjectReference;
|
|||
import mage.constants.WatcherScope;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.watchers.Watcher;
|
||||
|
||||
import java.util.*;
|
||||
|
|
@ -70,18 +69,4 @@ public class CastSpellLastTurnWatcher extends Watcher {
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getPermanentSpellOrder(Permanent permanent, Game game) {
|
||||
if (permanent == null) {
|
||||
return -1;
|
||||
}
|
||||
int index = 0;
|
||||
for (MageObjectReference mor : spellsCastThisTurnInOrder) {
|
||||
index++;
|
||||
if (mor.getSourceId() == permanent.getId() && mor.getZoneChangeCounter() + 1 == permanent.getZoneChangeCounter(game)) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue