mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
[JOU] Added 9 cards.
This commit is contained in:
parent
62dab73018
commit
75c67644bc
13 changed files with 816 additions and 12 deletions
|
|
@ -82,13 +82,15 @@ public class PreventAllDamageToEffect extends PreventionEffectImpl<PreventAllDam
|
|||
if (super.applies(event, source, game)) {
|
||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||
if (permanent != null) {
|
||||
if (filter.match(permanent, source.getSourceId(), source.getControllerId(), game))
|
||||
if (filter.match(permanent, source.getSourceId(), source.getControllerId(), game)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
Player player = game.getPlayer(event.getTargetId());
|
||||
if (player != null && filter.match(player, source.getSourceId(), source.getControllerId(), game))
|
||||
if (player != null && filter.match(player, source.getSourceId(), source.getControllerId(), game)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue