mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
fix LoseLifeControllerAttachedEffect (#11680)
add test for Pooling Venom
This commit is contained in:
parent
dafce47cd6
commit
8cef411c70
2 changed files with 67 additions and 1 deletions
|
|
@ -44,7 +44,10 @@ public class LoseLifeControllerAttachedEffect extends OneShotEffect {
|
|||
Permanent attachedTo = (Permanent) game.getLastKnownInformation(attachment.getAttachedTo(),
|
||||
Zone.BATTLEFIELD, attachment.getAttachedToZoneChangeCounter());
|
||||
if (attachedTo == null) {
|
||||
return false;
|
||||
attachedTo = game.getPermanent(attachment.getAttachedTo());
|
||||
if (attachedTo == null) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Player player = game.getPlayer(attachedTo.getControllerId());
|
||||
if (player == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue