mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
fix #11606 (PreventDamageToSourceEffect zcc check)
This commit is contained in:
parent
7c41c7b40a
commit
784a0f564b
2 changed files with 61 additions and 0 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue