MArcomage

Free multiplayer on-line fantasy card game

Please log in


10 R
Prince of thieves
Prince of thieves

Brigand

If not New
Steals the difference between opponent's stock and stock (max 15, min 5)

Id
339
Name
Prince of thieves
Rarity
Rare
Keywords
Cost (B / G / R)
0 / 0 / 10
Modes
0
Level
5
Created
25. Nov, 2007
Modified
22. Jul, 2010
Played
613 / 9769
Discarded
28 / 1001
Drawn
750 / 13109

BB code

Effect

If not New
Steals the difference between opponent's stock and stock (max 15, min 5)

Code

    if (!$t->isMyNew($t->cardPos())) {
      $tmp = min(15, max(5, $t->hisData()->Bricks - $t->myData()->Bricks));
      $t->myData()->addBricks($tmp);
      $t->hisData()->addBricks(-$tmp);
      $tmp = min(15, max(5, $t->hisData()->Gems - $t->myData()->Gems));
      $t->myData()->addGems($tmp);
      $t->hisData()->addGems(-$tmp);
      $tmp = min(15, max(5, $t->hisData()->Recruits - $t->myData()->Recruits));
      $t->myData()->addRecruits($tmp);
      $t->hisData()->addRecruits(-$tmp);
    }