MArcomage

Free multiplayer on-line fantasy card game

Please log in

Keywords > Frenzy

Icon

Frenzy

Effect

Rage blast - if played card is adjacent to a Frenzy card, opponent receives bonus damage (recruits cost of the played card * N/3, N based on played card rarity (Common - 1, Uncommon - 2, Rare - 3)).

Lore

Good generals are aware of the effect of army's high morale on its combat performance. Frenzy goes one step further. A frenzied creature is partially insane and can be dangerous to use, however when unleashed in the right time and right place it can break the enemy ranks and cause severe damage to the enemy.

Code

    if (($t->cardPos() > 1 && $this->getCard($t->myData()->Hand[$t->cardPos() - 1])->hasKeyword('Frenzy'))
      || ($t->cardPos() < $t->handSize() && $this->getCard($t->myData()->Hand[$t->cardPos() + 1])->hasKeyword('Frenzy'))) {
      $rarities = ['Common' => 1, 'Uncommon' => 2, 'Rare' => 3];
      $coef = $rarities[$t->card()->getRarity()];
      $t->hisData()->attack(round(($coef * $t->card()->getResources('Recruits')) / 3));
    }