Closed Kvel2D closed 4 months ago
Fixed by 4e33dd946dca8b2336cd5d259e59b0adf3036525
The problem was that dave_council_maledict_on_spell_targeted()
uses event.get_target()
on SPELL_TARGETED event. That event stored the creep as the target and later the script called get_gold()
on the creep, which is invalid because get_gold()
can be called only on the tower.
Fixed by storing caster in SPELL_TARGETED event target.
Crash happens in dave_council_maledict_on_spell_targeted().