Norbyte / ositools

Advanced scripting and mod support for Divinity Original Sin 2
MIT License
382 stars 30 forks source link

Game.Math.DoHit() write error #133

Open PinewoodPip opened 1 year ago

PinewoodPip commented 1 year ago

Extender Version

v60

Game Version

v3.6.117.3735

Bug Summary

Game.Math.DoHit() errors in v60:

Error while dispatching event ComputeCharacterHit: [string "builtin://Libs/Game.Math.lua"]:923: Cannot set property stats::HitDamageInfo::DamageList - cannot write properties of this type from hit.DamageList = Ext.Stats.NewDamageList()

Links

No response

Toijiro commented 1 year ago

Hello,

I'm not sure if it's the correct solution, but are you using the hit from event event.Hit?

I had the same problem as you, I managed to bypass it by using hit = Ext._Internal._MakeLegacyHitInfo(event.Hit) and it works for me, but I'm not sure it's the correct way to solve it