mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Update FilthyCur.java
This commit is contained in:
parent
9fcd729f0d
commit
dc1c6fa448
1 changed files with 3 additions and 2 deletions
|
@ -89,7 +89,8 @@ class DealtDamageLoseLifeTriggeredAbility extends TriggeredAbilityImpl<DealtDama
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
if (event.getType() == GameEvent.EventType.DAMAGED_CREATURE) {
|
if (event.getType() == GameEvent.EventType.DAMAGED_CREATURE) {
|
||||||
if (event.getTargetId().equals(this.sourceId)) {
|
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();
|
this.getControllerId();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -99,6 +100,6 @@ class DealtDamageLoseLifeTriggeredAbility extends TriggeredAbilityImpl<DealtDama
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRule() {
|
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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue