mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Filthy Cur - Fixed not working lose life effect.
This commit is contained in:
parent
8094c20fd1
commit
6cfd529017
1 changed files with 1 additions and 2 deletions
|
@ -31,7 +31,6 @@ import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.TriggeredAbilityImpl;
|
import mage.abilities.TriggeredAbilityImpl;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.LoseLifeControllerEffect;
|
|
||||||
import mage.abilities.effects.common.LoseLifeSourceEffect;
|
import mage.abilities.effects.common.LoseLifeSourceEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
@ -90,7 +89,7 @@ class DealtDamageLoseLifeTriggeredAbility extends TriggeredAbilityImpl<DealtDama
|
||||||
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)) {
|
||||||
this.getEffects().clear();
|
this.getEffects().clear();
|
||||||
this.addEffect(new LoseLifeControllerEffect(event.getAmount()));
|
this.addEffect(new LoseLifeSourceEffect(event.getAmount()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue