-fixed bug with elvish promenade (and various instants/sorceries)
-Fixed bug with some auras that wouldn't go to graveyard in some conditions
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-19 06:42:00 +00:00
parent 9b263eaee1
commit cca8d0f600
9 changed files with 75 additions and 36 deletions
+6 -7
View File
@@ -349,16 +349,15 @@ int HUDDisplay::receiveEvent(WEvent * event){
WEventZoneChange * ezc = dynamic_cast<WEventZoneChange*>(event);
if (ezc) {
int ok = 0;
for (int i = 0; i < 2 ; i++){
Player * p = game->players[i];
if (ezc->from == p->game->graveyard || ezc->to == p->game->graveyard ) ok = 1;
if (ezc->to == p->game->graveyard ){
char buffer[512];
sprintf(buffer,_("%s goes to graveyard").c_str(), _(ezc->card->getName()).c_str());
string s = buffer;
return addEvent(s);
}
}
if (!ok) return 0;
char buffer[512];
sprintf(buffer,_("%s goes to graveyard").c_str(), _(ezc->card->getName()).c_str());
string s = buffer;
return addEvent(s);
}
WEventDamage * ed = dynamic_cast<WEventDamage*>(event);