MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 C
Chaos emblem
Chaos emblem

Durable.

Stock: -1
Randomly discards two common cards from hand

Author
Id
1061
Name
Chaos emblem
Rarity
Common
Keywords
Durable.
State
interesting

BB code

Effect

Stock: -1
Randomly discards two common cards from hand

Note

Possible implementation code:

$mydata->Bricks-= 1; $mydata->Gems-= 1; $mydata->Recruits-= 1;
$storage = array();
for ($i = 1; $i <= 8; $i++)
if (($i != $cardpos) AND ($carddb->GetCard($mydata->Hand[$i])->GetClass() == 'Common')) $storage[] = $i;
$count = min(count($storage),2);
if ($count > 0)
{shuffle($storage);
for ($k = 0; $k < $count; $k++)
{
$i = $storage[$k];
$mydata->Hand[$i] = $this->DrawCard($mydata->Deck, $mydata->Hand, $cardpos, 'DrawCard_random');
$mydata->NewCards[$i] = 1;
}
}