Open sprunk opened 1 month ago
Tips:
LuaHandle::ShieldPreDamaged
.shieldDamage
and curPower
.lua_pushnumber
s inside LuaHandle::ShieldPreDamaged
, after existing args.const
from damage and pass it as a reference so it can be modified. Look at UnitPreDamaged
for how to use the value returned from Lua to modify the C++ value.
Shield HP and incoming projectile damage sound pretty important to know when handling a hit, and it's even impossible to get the damage correctly in some cases.
Additionally the damage would be good to modify, like you can with
UnitPreDamaged
.