mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
* 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:
parent
fe1ca2ae88
commit
9b6db41923
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ public class DamagePlayersEffect extends OneShotEffect<DamagePlayersEffect> {
|
||||||
for (UUID playerId: game.getPlayer(source.getControllerId()).getInRange()) {
|
for (UUID playerId: game.getPlayer(source.getControllerId()).getInRange()) {
|
||||||
Player player = game.getPlayer(playerId);
|
Player player = game.getPlayer(playerId);
|
||||||
if (player != null) {
|
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;
|
break;
|
||||||
|
@ -86,7 +86,7 @@ public class DamagePlayersEffect extends OneShotEffect<DamagePlayersEffect> {
|
||||||
for (UUID playerId: game.getOpponents(source.getControllerId())) {
|
for (UUID playerId: game.getOpponents(source.getControllerId())) {
|
||||||
Player player = game.getPlayer(playerId);
|
Player player = game.getPlayer(playerId);
|
||||||
if (player != null) {
|
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;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue