jace's erasure fix, this is only temporary until i add all the abilitie varibles, currently theres no system beside a workaround we use "thisforeach(varible) effect" to return a value, when im done with the varible returning for abilities then the code will be replaced with @drawn(controller):may deplete:cardamount. for now tho this makes the addDraw send 1 event for each card drawn, essentially making all the @drawn cards 100%.

This commit is contained in:
omegablast2002@yahoo.com
2010-12-06 11:28:11 +00:00
parent ed321e2df5
commit 336cf0bc32

View File

@@ -460,8 +460,11 @@ int ActionStack::addDraw(Player * player, int nb_cards)
DrawAction * draw = NEW DrawAction(mCount, player, nb_cards);
addAction(draw);
GameObserver *g = GameObserver::GetInstance();
for(int i = nb_cards; i > 0;i--)
{
WEvent * e = NEW WEventcardDraw(player, nb_cards);
g->receiveEvent(e);
}
return 1;
}