MCPcopy Create free account
hub / github.com/Card-Forge/forge / hasProperty

Method hasProperty

forge-game/src/main/java/forge/game/card/Card.java:5813–5819  ·  view source on GitHub ↗
(final String property, final Player sourceController, final Card source, CardTraitBase spellAbility)

Source from the content-addressed store, hash-verified

5811
5812 // Takes arguments like Blue or withFlying
5813 @Override
5814 public boolean hasProperty(final String property, final Player sourceController, final Card source, CardTraitBase spellAbility) {
5815 if (property.startsWith("!")) {
5816 return !CardProperty.cardHasProperty(this, property.substring(1), sourceController, source, spellAbility);
5817 }
5818 return CardProperty.cardHasProperty(this, property, sourceController, source, spellAbility);
5819 }
5820
5821 public final boolean isEmblem() {
5822 return isEmblem;

Callers 1

isValidMethod · 0.95

Calls 2

cardHasPropertyMethod · 0.95
startsWithMethod · 0.80

Tested by

no test coverage detected