DamageAllEffect - source.getId to source.getSourceId

This commit is contained in:
magenoxx 2011-12-24 12:34:15 +04:00
parent dc2ebdd16d
commit 9a7d158a20

View file

@ -72,7 +72,7 @@ public class DamageAllEffect extends OneShotEffect<DamageAllEffect> {
public boolean apply(Game game, Ability source) {
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game);
for (Permanent permanent: permanents) {
permanent.damage(amount.calculate(game, source), source.getId(), game, true, false);
permanent.damage(amount.calculate(game, source), source.getSourceId(), game, true, false);
}
return true;
}