mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Overwrote checkEventType for Death Pits of Rath.
This commit is contained in:
parent
c27ef5ee97
commit
4543aac30e
1 changed files with 8 additions and 8 deletions
|
@ -50,7 +50,6 @@ public class DeathPitsOfRath extends CardImpl {
|
|||
super(ownerId, 21, "Death Pits of Rath", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{3}{B}{B}");
|
||||
this.expansionSetCode = "TMP";
|
||||
|
||||
|
||||
// Whenever a creature is dealt damage, destroy it. It can't be regenerated.
|
||||
this.addAbility(new DeathPitsOfRathTriggeredAbility());
|
||||
}
|
||||
|
@ -80,17 +79,18 @@ class DeathPitsOfRathTriggeredAbility extends TriggeredAbilityImpl {
|
|||
return new DeathPitsOfRathTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.DAMAGED_CREATURE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.DAMAGED_CREATURE) {
|
||||
for(Effect effect : this.getEffects())
|
||||
{
|
||||
for(Effect effect : this.getEffects()) {
|
||||
effect.setTargetPointer(new FixedTarget(event.getTargetId()));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
|
|
Loading…
Reference in a new issue