Yes, it does.
So what is going on? It seems like the variable is not saved onto the unit if it runs from the attack event.
Where are is unit getting set?
After you change unit, are you pushing the changes back to the actual unit (e.g. wesnoth.units.to_map()) ?
Statistics: Posted by white_haired_uncle — Today, 7:44 pm