MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 R
Order of the White Lotus
Order of the White Lotus

If not New
Balances (average) both players' tower, wall, facilities and stock

Id
380
Name
Order of the White Lotus
Rarity
Rare
Keywords
Cost (B / G / R)
0 / 0 / 0
Modes
0
Level
10
Created
30. Jul, 2008
Modified
11. Apr, 2009
Played
384 / 4680
Discarded
201 / 2745
Drawn
867 / 10670

BB code

Effect

If not New
Balances (average) both players' tower, wall, facilities and stock

Code

    if (!$t->isMyNew($t->cardPos())) {
      $temp_array = ['Tower', 'Wall', 'Quarry', 'Magic', 'Dungeons', 'Bricks', 'Gems', 'Recruits'];
      foreach ($temp_array as $attribute) {
        $t->myData()->$attribute = $t->hisData()->$attribute = round(($t->myData()->$attribute + $t->hisData()->$attribute) / 2);
      }
    }