MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 C
Abyssal scavenger
Abyssal scavenger

Demonic Far sight

Returns 1/3 of cost of opponent's last card (max 4)

Id
402
Name
Abyssal scavenger
Rarity
Common
Keywords
Cost (B / G / R)
0 / 0 / 0
Modes
0
Level
9
Created
24. Dec, 2008
Modified
24. Dec, 2013
Played
3086 / 35333
Discarded
2108 / 15499
Drawn
6237 / 60480

BB code

Effect

Returns 1/3 of cost of opponent's last card (max 4)

Code

    $tmp_card = $t->hisLastCard();
    $t->myData()
      ->addBricks(min(round($tmp_card->getResources('Bricks') / 3), 4))
      ->addGems(min(round($tmp_card->getResources('Gems') / 3), 4))
      ->addRecruits(min(round($tmp_card->getResources('Recruits') / 3), 4));