From 336cf0bc32bfbcca820feaf4aba5cae4c66d07d8 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Mon, 6 Dec 2010 11:28:11 +0000 Subject: [PATCH] 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%. --- projects/mtg/src/ActionStack.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/mtg/src/ActionStack.cpp b/projects/mtg/src/ActionStack.cpp index 4dc4c8d58..5db57f168 100644 --- a/projects/mtg/src/ActionStack.cpp +++ b/projects/mtg/src/ActionStack.cpp @@ -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; }