mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Update EngulfingFlames.java
This commit is contained in:
parent
2d76ad3f78
commit
4511ca64c1
1 changed files with 4 additions and 2 deletions
|
@ -62,7 +62,7 @@ public class EngulfingFlames extends CardImpl<EngulfingFlames> {
|
|||
this.getSpellAbility().addEffect(new EngulfingFlamesEffect());
|
||||
this.addWatcher(new DamagedByWatcher());
|
||||
// Flashback {3}{R}
|
||||
this.addAbility(new FlashbackAbility(new ManaCostsImpl("{3}{R}"), TimingRule.SORCERY));
|
||||
this.addAbility(new FlashbackAbility(new ManaCostsImpl("{3}{R}"), TimingRule.INSTANT));
|
||||
}
|
||||
|
||||
public EngulfingFlames(final EngulfingFlames card) {
|
||||
|
@ -106,10 +106,12 @@ class EngulfingFlamesEffect extends ReplacementEffectImpl<EngulfingFlamesEffect>
|
|||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.REGENERATE) {
|
||||
DamagedByWatcher watcher = (DamagedByWatcher) game.getState().getWatchers().get("DamagedByWatcher", source.getSourceId());
|
||||
if (watcher != null)
|
||||
if (watcher != null) {
|
||||
return watcher.damagedCreatures.contains(event.getTargetId());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue