mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
small additional fix
This commit is contained in:
parent
8b15bd7d57
commit
fc530a119d
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ import mage.filter.predicate.Predicates;
|
|||
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
||||
import mage.filter.predicate.permanent.ControllerIdPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.DamageEvent;
|
||||
import mage.game.events.DamagedEvent;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.watchers.Watcher;
|
||||
|
@ -115,7 +115,7 @@ class SteelHellkiteWatcher extends Watcher {
|
|||
@Override
|
||||
public void watch(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.DAMAGED_PLAYER
|
||||
&& ((DamageEvent) event).isCombatDamage()) {
|
||||
&& ((DamagedEvent) event).isCombatDamage()) {
|
||||
damageMap.putIfAbsent(event.getSourceId(), new HashSet<>());
|
||||
damageMap.get(event.getSourceId()).add(event.getPlayerId());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue