Update FilthyCur.java

This commit is contained in:
cbt33 2013-09-30 10:44:42 -04:00
parent 9fcd729f0d
commit dc1c6fa448

View file

@ -89,7 +89,8 @@ class DealtDamageLoseLifeTriggeredAbility extends TriggeredAbilityImpl<DealtDama
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.DAMAGED_CREATURE) {
if (event.getTargetId().equals(this.sourceId)) {
game.getPlayer(this.controllerId).loseLife(event.getAmount(), game);
this.getEffects().clear();
this.addEffect(new LoseLifeControllerEffect(event.getAmount()));
this.getControllerId();
return true;
}
@ -99,6 +100,6 @@ class DealtDamageLoseLifeTriggeredAbility extends TriggeredAbilityImpl<DealtDama
@Override
public String getRule() {
return "Whenever {this} is dealt damage, you lose life equal to that damage";
return "Whenever {this} is dealt damage, you lose that much life";
}
}