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:
@@ -460,8 +460,11 @@ int ActionStack::addDraw(Player * player, int nb_cards)
|
|||||||
DrawAction * draw = NEW DrawAction(mCount, player, nb_cards);
|
DrawAction * draw = NEW DrawAction(mCount, player, nb_cards);
|
||||||
addAction(draw);
|
addAction(draw);
|
||||||
GameObserver *g = GameObserver::GetInstance();
|
GameObserver *g = GameObserver::GetInstance();
|
||||||
|
for(int i = nb_cards; i > 0;i--)
|
||||||
|
{
|
||||||
WEvent * e = NEW WEventcardDraw(player, nb_cards);
|
WEvent * e = NEW WEventcardDraw(player, nb_cards);
|
||||||
g->receiveEvent(e);
|
g->receiveEvent(e);
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user