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:
@@ -173,9 +173,9 @@ Targetable * WEventVampire::getTarget(int target)
|
||||
switch (target)
|
||||
{
|
||||
case TARGET_TO:
|
||||
return source->next;
|
||||
return victem->next;
|
||||
case TARGET_FROM:
|
||||
return victem;
|
||||
return source;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user