minor adjustment to previous fix for AliFromCairo
@@ -106,17 +106,12 @@ class AliFromCairoReplacementEffect extends ReplacementEffectImpl {
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
Player controller = game.getPlayer(source.getControllerId());
-
+ if (controller != null) {
// 10/1/2008: The ability doesn't change how much damage is dealt;
// it just changes how much life that damage makes you lose.
// An effect such as Spirit Link will see the full amount of damage being dealt.
- game.fireEvent(event);
-
- if (controller != null) {
- controller.setLife(1, game, source);
+ event.setAmount(controller.getLife() - 1);
}
-
- return true;
+ return false;
}
-
}
