mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
* DestroyTargetEffect - Fixed wrong source reference given to permanent.destroy method.
This commit is contained in:
parent
b5f74beff0
commit
efb664c743
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ public class DestroyTargetEffect extends OneShotEffect<DestroyTargetEffect> {
|
|||
for (UUID permanentId : target.getTargets()) {
|
||||
Permanent permanent = game.getPermanent(permanentId);
|
||||
if (permanent != null) {
|
||||
permanent.destroy(source.getId(), game, noRegen);
|
||||
permanent.destroy(source.getSourceId(), game, noRegen);
|
||||
affectedTargets++;
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ public class DestroyTargetEffect extends OneShotEffect<DestroyTargetEffect> {
|
|||
for (UUID permanentId : targetPointer.getTargets(game, source)) {
|
||||
Permanent permanent = game.getPermanent(permanentId);
|
||||
if (permanent != null) {
|
||||
permanent.destroy(source.getId(), game, noRegen);
|
||||
permanent.destroy(source.getSourceId(), game, noRegen);
|
||||
affectedTargets++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue