MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 R
Prosperity
Prosperity

Restoration

If Stock < Enemy stock
Stock: +12
else
Stock: +6
Enemy stock: +6

Id
456
Name
Prosperity
Rarity
Rare
Keywords
Cost (B / G / R)
0 / 0 / 0
Modes
0
Level
10
Created
22. Jul, 2009
Modified
12. Feb, 2011
Played
728 / 8291
Discarded
134 / 1796
Drawn
1035 / 12723

BB code

Effect

If Stock < Enemy stock
Stock: +12
else
Stock: +6
Enemy stock: +6

Code

    $my_count = $t->myData()->Bricks + $t->myData()->Gems + $t->myData()->Recruits;
    $his_count = $t->hisData()->Bricks + $t->hisData()->Gems + $t->hisData()->Recruits;
    if ($my_count < $his_count) {
      $t->myData()->addStock(12);
    }
    else {
      $t->myData()->addStock(6);
      $t->hisData()->addStock(6);
    }