MArcomage

Free multiplayer on-line fantasy card game

Please log in


5 C
Minaret
Minaret

Player(s) with fewest different keywords in hand gains
Tower: +10

Id
537
Name
Minaret
Rarity
Common
Keywords
Cost (B / G / R)
5 / 0 / 0
Modes
0
Level
9
Created
21. Jun, 2010
Modified
19. Oct, 2013
Played
9618 / 41874
Discarded
1300 / 8406
Drawn
12526 / 62983

BB code

Effect

Player(s) with fewest different keywords in hand gains
Tower: +10

Code

    $mine = $t->countDistinctKeywords($t->myData()->Hand);
    $his = $t->countDistinctKeywords($t->hisData()->Hand);
    if ($mine <= $his) {
      $t->myData()->addTower(10);
    }
    if ($mine >= $his) {
      $t->hisData()->addTower(10);
    }