Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game.Math.DoHit() write error #133

Open
PinewoodPip opened this issue Aug 30, 2023 · 1 comment
Open

Game.Math.DoHit() write error #133

PinewoodPip opened this issue Aug 30, 2023 · 1 comment
Labels
bug Something isn't working scripting Extender scripting API issue (mod developers)

Comments

@PinewoodPip
Copy link
Contributor

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

@PinewoodPip PinewoodPip added bug Something isn't working scripting Extender scripting API issue (mod developers) labels Aug 30, 2023
@Toijiro
Copy link

Toijiro commented Sep 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working scripting Extender scripting API issue (mod developers)
Projects
None yet
Development

No branches or pull requests

2 participants