fix #11606 (PreventDamageToSourceEffect zcc check)

This commit is contained in:
xenohedron 2024-01-06 14:57:56 -05:00
parent 7c41c7b40a
commit 784a0f564b
2 changed files with 61 additions and 0 deletions

View file

@ -39,6 +39,9 @@ public class PreventDamageToSourceEffect extends PreventionEffectImpl {
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (source.getSourcePermanentIfItStillExists(game) == null) {
return false;
}
return super.applies(event, source, game) && event.getTargetId().equals(source.getSourceId());
}