MArcomage

Free multiplayer on-line fantasy card game

Please log in


6 U
Valley of thousand rivers
Valley of thousand rivers

Player(s) with most Alliance, Legend and Mage gains
Lowest facility: +1

Id
429
Name
Valley of thousand rivers
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 6 / 0
Modes
0
Level
7
Created
11. Apr, 2009
Modified
11. Apr, 2009
Played
1441 / 10524
Discarded
130 / 778
Drawn
1802 / 12987

BB code

Effect

Player(s) with most Alliance, Legend and Mage gains
Lowest facility: +1

Code

    $myHand = $t->myData()->Hand;
    $hisHand = $t->hisData()->Hand;
    $myCount = $t->keywordCount($myHand, 'Alliance') + $t->keywordCount($myHand, 'Legend') + $t->keywordCount($myHand, 'Mage');
    $hisCount = $t->keywordCount($hisHand, 'Alliance') + $t->keywordCount($hisHand, 'Legend') + $t->keywordCount($hisHand, 'Mage');
    if ($myCount >= $hisCount) {
      $t->myData()->addLowestFacility(1);
    }
    if ($myCount <= $hisCount) {
      $t->hisData()->addLowestFacility(1);
    }