azayrahmad / 0AD-Morale-System

Simple mod for 0 A.D. to simulate morale/will to fight.
MIT License
3 stars 0 forks source link

Morale Influence is not removed on unit death #3

Closed azayrahmad closed 3 years ago

azayrahmad commented 3 years ago

OnRangeUpdate does not trigger for other units if a unit is killed. So if unit A is applying effect to unit B in range, and then unit A is killed, unit B still has effect applied.

Clue from wraitii: Debug OnOwnershipChanged or onDestroy