Fix Haunt ability to trigger on haunted tokens dying (#7689, #10308); add test (#10310)

This commit is contained in:
xenohedron 2023-05-07 13:31:23 -04:00 committed by GitHub
parent 35bb7d513b
commit 3e5b392287
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 5 deletions

View file

@ -81,8 +81,7 @@ public class HauntAbility extends TriggeredAbilityImpl {
return false;
}
Card card = game.getCard(getSourceId());
if (card == null
|| game.getCard(event.getTargetId()) == null) {
if (card == null) {
return false;
}
String key = new StringBuilder("Haunting_")