mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
Fixed Unlicensed Disintegration damage part (#6614)
* Damage to creature's controller abilities -- fixed that damage part can be skipped if that creature died/destroyed (example: Unlicensed Disintegration, see #6614) Co-authored-by: johnm <johnm@WINDOWS-QR5QIIL.lan> Co-authored-by: Oleg Agafonov <jaydi85@gmail.com>
This commit is contained in:
parent
07309003b4
commit
3119e7e78c
3 changed files with 130 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ public class DamageTargetControllerEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(getTargetPointer().getFirst(game, source));
|
||||
if (permanent != null) {
|
||||
Player targetController = game.getPlayer(permanent.getControllerId());
|
||||
if (targetController != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue