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
|
|
@ -99,7 +99,7 @@ public class ProtectionAbility extends StaticAbility {
|
|||
// object is still a card and not a spell yet. So return only if the source object can't be a spell
|
||||
// otherwise the following FilterObject check will be applied
|
||||
if (source instanceof StackObject
|
||||
|| (!source.isInstant() && !source.isSorcery())) {
|
||||
|| !source.isInstantOrSorcery()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -107,7 +107,7 @@ public class ProtectionAbility extends StaticAbility {
|
|||
// Emrakul, the Aeons Torn
|
||||
if (filter instanceof FilterStackObject) {
|
||||
if (filter.match(source, game)) {
|
||||
return (!source.isInstantOrSorcery());
|
||||
return !source.isInstantOrSorcery();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue