mirror of
https://github.com/correl/mage.git
synced 2025-04-10 17:00:08 -09:00
* Dinosaur Hunter - Fixed a bug caused by the triggered ability.
This commit is contained in:
parent
f05e459c12
commit
21dbf89a70
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ import mage.cards.CardImpl;
|
|||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
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.target.targetpointer.FixedTarget;
|
||||
|
@ -89,7 +89,7 @@ class DinosaurHunterAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (((DamageEvent) event).isCombatDamage()
|
||||
if (((DamagedEvent) event).isCombatDamage()
|
||||
&& event.getSourceId().equals(getSourceId())) {
|
||||
Permanent targetPermanet = game.getPermanentOrLKIBattlefield(event.getTargetId());
|
||||
if (targetPermanet.hasSubtype(SubType.DINOSAUR, game)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue