mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fixed error of CastFromHandCondition.
This commit is contained in:
parent
6299425c1d
commit
385313bd64
1 changed files with 4 additions and 4 deletions
|
@ -37,11 +37,11 @@ public class CastFromHandWatcher extends Watcher {
|
|||
step = null;
|
||||
}
|
||||
if (event.getType() == GameEvent.EventType.SPELL_CAST && event.getZone().equals(Zone.HAND)) {
|
||||
if (step == null) {
|
||||
step = game.getTurn().getStep();
|
||||
Spell spell = (Spell) game.getObject(event.getTargetId());
|
||||
if (this.getSourceId().equals(spell.getSourceId())) {
|
||||
condition = true;
|
||||
}
|
||||
Spell spell = (Spell) game.getObject(event.getTargetId());
|
||||
spellsCastFromHand.add(spell.getSourceId());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue