forked from External/mage
simplified various cards to use isInstantOrSorcery method
This commit is contained in:
parent
df866f858e
commit
2a42bec1f2
38 changed files with 46 additions and 43 deletions
|
|
@ -46,7 +46,7 @@ public class PreventDamageByTargetEffect extends PreventionEffectImpl {
|
|||
if (!this.used && super.applies(event, source, game)) {
|
||||
MageObject mageObject = game.getObject(event.getSourceId());
|
||||
if (mageObject != null
|
||||
&& (mageObject.isInstant() || mageObject.isSorcery())) {
|
||||
&& mageObject.isInstantOrSorcery()) {
|
||||
for (Target target : source.getTargets()) {
|
||||
if (target instanceof TargetSpell) {
|
||||
if (((TargetSpell) target).getSourceIds().contains(event.getSourceId())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue