gain life should only occur if target is valid, fixes issue 299

master
melvin 2012-10-05 09:25:22 +08:00
parent b000bf5cab
commit 80f1a4fbb0
1 changed files with 1 additions and 1 deletions

View File

@ -35,9 +35,9 @@ public class Essence_Drain {
public void doAction(final MagicTarget target) {
final MagicDamage damage=new MagicDamage(event.getSource(),target,3,false);
game.doAction(new MagicDealDamageAction(damage));
game.doAction(new MagicChangeLifeAction(event.getPlayer(),3));
}
});
game.doAction(new MagicChangeLifeAction(event.getPlayer(),3));
}
};
}