fix LoseLifeControllerAttachedEffect (#11680)

add test for Pooling Venom
This commit is contained in:
xenohedron 2024-01-19 18:32:01 -05:00 committed by GitHub
parent dafce47cd6
commit 8cef411c70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 67 additions and 1 deletions

View file

@ -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) {