java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.OrCondition
All Implemented Interfaces:
Serializable, HasDesc<ConditionDesc>

public class OrCondition extends Condition
This condition passes if any of the conditions in ConditionArg.CONDITIONS also pass.

If no conditions pass, or no conditions are specified, this condition does not pass (returns false).

This can be used to disable hero powers from being cast, to create a passive hero power. For example:

   {
     "type": "HERO_POWER",
     "passiveTriggers": [{
       "eventTrigger": { ... },
       "spell": {
         "class": "HeroPowerSpell",
         "spell": { ... }
       }
     }],
     "condition": {
       "class": "OrCondition"
     }
   }
 

This card cannot be "played" but its passive trigger contains its text.

See Also: