mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Swarmborn Giant - Fixed a bug that locked the game if controller was dealt damage.
This commit is contained in:
parent
b6e085f834
commit
f716b9ad5f
1 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ import mage.constants.Duration;
|
|||
import mage.constants.Rarity;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.DamageEvent;
|
||||
import mage.game.events.DamagedEvent;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
/**
|
||||
|
@ -105,8 +105,8 @@ class SwarmbornGiantTriggeredAbility extends TriggeredAbilityImpl<SwarmbornGiant
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType().equals(GameEvent.EventType.DAMAGED_PLAYER) && event.getTargetId().equals(this.getControllerId())) {
|
||||
DamageEvent damageEvent = (DamageEvent) event;
|
||||
return damageEvent.isCombatDamage();
|
||||
DamagedEvent damagedEvent = (DamagedEvent) event;
|
||||
return damagedEvent.isCombatDamage();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue