MArcomage

Free multiplayer on-line fantasy card game

Please log in

Keywords > Destruction

Icon

Destruction

Effect

Dark fury - if a Destruction card is played after playing a different non-common Destruction card, it reduces enemy's highest facility by 1 when it is greater than 3, otherwise it reduces opponent's highest resource by 6.

Lore

Offense is the best defense - the motto of every mage who mastered this dark art. Destruction magic contains spells that directly cripple the enemy which often prevent them to mount a counter-offensive. One warlock who wields the destruction magic at master level is able to annihilate whole armies in matter of seconds.

Code

    if ($t->myLastCard()->hasKeyword('Destruction') && $t->myLastAction() == 'play' && $t->myLastCard()->getRarity() != 'Common' && $t->card()->id() != $t->myLastCard()->id()) {
      $max = max($t->hisData()->Quarry, $t->hisData()->Magic, $t->hisData()->Dungeons);
      if ($max > 3) {
        $t->hisData()->addHighestFacility(-1);
      }
      else {
        $t->hisData()->addHighestResource(-6);
      }
    }