Erwan
-fixed GameObserver::receiveEvent
This commit is contained in:
@@ -471,6 +471,7 @@ int GameObserver::receiveEvent(WEvent * e){
|
|||||||
SAFE_DELETE(ev);
|
SAFE_DELETE(ev);
|
||||||
eventsQueue.pop();
|
eventsQueue.pop();
|
||||||
}
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -524,6 +524,7 @@ int MTGCardInstance::setDefenser(MTGCardInstance * opponent){
|
|||||||
WEvent * e = NULL;
|
WEvent * e = NULL;
|
||||||
if (defenser != opponent){
|
if (defenser != opponent){
|
||||||
e = NEW WEventCreatureBlocker(this, defenser, opponent);
|
e = NEW WEventCreatureBlocker(this, defenser, opponent);
|
||||||
|
|
||||||
}
|
}
|
||||||
defenser = opponent;
|
defenser = opponent;
|
||||||
if (defenser){
|
if (defenser){
|
||||||
|
|||||||
Reference in New Issue
Block a user