Fixed damage sourceId in various places.

This commit is contained in:
magenoxx 2011-03-07 18:12:54 +03:00
parent f62fe42973
commit ed4584cbe8
8 changed files with 13 additions and 13 deletions

View file

@ -73,12 +73,12 @@ public class DamageTargetEffect extends OneShotEffect<DamageTargetEffect> {
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getFirstTarget());
if (permanent != null) {
permanent.damage(amount, source.getId(), game, preventable, false);
permanent.damage(amount, source.getSourceId(), game, preventable, false);
return true;
}
Player player = game.getPlayer(source.getFirstTarget());
if (player != null) {
player.damage(amount, source.getId(), game, false, preventable);
player.damage(amount, source.getSourceId(), game, false, preventable);
return true;
}
return false;