forked from External/mage
added new helper methods to test for CardType, to get rid of the contains(CardType.XXX) everywhere, put the logic of that in one place and use the interface call
This commit is contained in:
parent
6b20d352ca
commit
5a57731968
69 changed files with 151 additions and 120 deletions
|
|
@ -61,7 +61,7 @@ class IntimidateEffect extends RestrictionEffect implements MageSingleton {
|
|||
@Override
|
||||
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
|
||||
boolean result = false;
|
||||
if (blocker.getCardType().contains(CardType.ARTIFACT) && (blocker.getCardType().contains(CardType.CREATURE))) {
|
||||
if (blocker.isArtifact() && (blocker.isCreature())) {
|
||||
result = true;
|
||||
}
|
||||
if (attacker.getColor(game).shares(blocker.getColor(game))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue