fixed a reported bug with @vampired, it was tricky, but ultimately i had to move the building of vampevent outside of TRVampired...the reason being that all instances of TRVamp were able to send and react to other instances of it sending out "vampevents", so move it into rules so only one object handles that, also changed the method it was handled, it now maps the cards with a 2nd vector of the vampires...basically "this card was dealt damage by X, Y, Z this turn"...

let me know if i missed some strange edge case somewhere. as far as i tested, it seems to work just fine.
This commit is contained in:
omegablast2002@yahoo.com
2011-04-29 13:24:02 +00:00
parent 95987c6d87
commit 0fba6994a6
6 changed files with 103 additions and 63 deletions

View File

@@ -38,6 +38,7 @@ void DuelLayers::init()
action->Add(NEW MTGPlaneWalkerRule(-1));
action->Add(NEW MTGTokensCleanup(-1)); // needs to be before persist
action->Add(NEW MTGPersistRule(-1));
action->Add(NEW MTGVampireRule(-1));
action->Add(NEW MTGUnearthRule(-1));
action->Add(NEW MTGLifelinkRule(-1));
action->Add(NEW MTGDeathtouchRule(-1));