Cleaned up hotbar database stuff (slot starts at 0 now!) and fixed a few bugs in the state system.

This commit is contained in:
Filip Maj 2017-08-28 23:21:21 -04:00
parent 7ad40f625a
commit d81832f256
4 changed files with 32 additions and 36 deletions

View file

@ -13,7 +13,7 @@ function onTick(target, effect)
sender = "regen";
-- todo: actual regen effect thing
local ability = GetWorldManager().GetAbility(27346);
local ability = GetWorldManager().GetBattleCommand(27346);
local anim = bit32.bxor(bit32.lshift(ability.animationType, 24), bit32.lshift(tonumber(1), 12) , 101);
local addHp = effect.GetMagnitude();