Closed ghost closed 3 years ago
I shot a Taser while being tased, then the game crashed. I reckon this is correlated with, "While being tased, your bullets will electrify enemies." I had a light crossbow with poison bolts.
I have a feeling this crash will (also) happen with other weapons that don't use bullets.
That's rather interesting. Thanks for the report! I'll make sure to get it fixed for the next update.
Fixed.
Title.
Here's the log: Application has crashed: C++ exception [string "core/lib/utils/corecode.lua"]:100: attempt to index local 'obj' (a number value)
SCRIPT STACK
add_damage_result() lib/units/weapons/bowweaponbase.lua:259 damage_tase() lib/units/enemies/cop/copdamage.lua:1671 give_impact_damage() @mods/IRE AND FIST REBORN/lua/raycast.lua:965 on_collision() lib/units/weapons/raycastweaponbase.lua:2137 on_collision() lib/units/weapons/raycastweaponbase.lua:2801 _on_collision() lib/units/weapons/projectiles/arrowbase.lua:76 clbk_impact() lib/units/weapons/projectiles/projectilebase.lua:256 func() lib/units/weapons/projectiles/arrowbase.lua:95 body_collision_callback() core/lib/units/coreunitdamage.lua:1537 lib/units/unitdamage.lua:92
Callstack: