mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fixed bug of DamageTargetEffect.
This commit is contained in:
parent
332697282d
commit
211af5c9e3
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class DamageTargetEffect extends OneShotEffect<DamageTargetEffect> {
|
|||
if (permanent != null) {
|
||||
permanent.damage(amount.calculate(game, source), source.getSourceId(), game, preventable, false);
|
||||
} else {
|
||||
Player player = game.getPlayer(targetPointer.getFirst(game, source));
|
||||
Player player = game.getPlayer(targetId);
|
||||
if (player != null) {
|
||||
player.damage(amount.calculate(game, source), source.getSourceId(), game, false, preventable);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue