* Guttersnipe - Fixed a bug that the triggered damage to opponents did not trigger ability of Curiosity if it enchanted Guttersnipe.

This commit is contained in:
LevelX2 2013-06-24 00:08:53 +02:00
parent fe1ca2ae88
commit 9b6db41923

View file

@ -78,7 +78,7 @@ public class DamagePlayersEffect extends OneShotEffect<DamagePlayersEffect> {
for (UUID playerId: game.getPlayer(source.getControllerId()).getInRange()) {
Player player = game.getPlayer(playerId);
if (player != null) {
player.damage(amount.calculate(game, source), source.getId(), game, false, true);
player.damage(amount.calculate(game, source), source.getSourceId(), game, false, true);
}
}
break;
@ -86,7 +86,7 @@ public class DamagePlayersEffect extends OneShotEffect<DamagePlayersEffect> {
for (UUID playerId: game.getOpponents(source.getControllerId())) {
Player player = game.getPlayer(playerId);
if (player != null) {
player.damage(amount.calculate(game, source), source.getId(), game, false, true);
player.damage(amount.calculate(game, source), source.getSourceId(), game, false, true);
}
}
break;