mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Fixed damage sourceId in various places.
This commit is contained in:
parent
f62fe42973
commit
ed4584cbe8
8 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue