-
Moving discussion here from the issue. I can't quite figure out how to get HP/MP AE to proc. There are two separate issues I am facing.
I just get 0 return on MP. Assumed that 952 (potency) would pull that but it constantly hits for 0. for HP Drain I have the following:
This however throws errors on each swing. Same with MP drain /Aspir knife
Any advice would be much appreciated. Likely not referencing the proper new table somewhere. I would assume its in magic as drain_samba.lua one of the requires is magic.lua but honestly, cannot figure it out at this point. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
the answer for both items was: damage was nil because a needed modifier was not setfor mjollnir:
its not a status effect, so status potency does nothing. xi.additionalEffect.attack = function(attacker, defender, baseAttackDamage, item)
local addType = item:getMod(xi.mod.ITEM_ADDEFFECT_TYPE)
local subEffect = item:getMod(xi.mod.ITEM_SUBEFFECT)
local damage = item:getMod(xi.mod.ITEM_ADDEFFECT_DMG) elseif addType == procType.MP_HEAL then -- Mjollnir does this, it is not Aspir.
local MP = damage
-- Unknown what modifies this, using power directly for now
msgID = xi.msg.basic.ADD_EFFECT_MP_HEAL
attacker:addMP(MP)
msgParam = MP in the global itself you can see it uses the damage modifier as the mp for drains:
and the errors are? likely when magic global was refactored something relied on there got moved. I can't check right away : dayjob) but likely I need to update the requires. |
Beta Was this translation helpful? Give feedback.
the answer for both items was: damage was nil because a needed modifier was not set
for mjollnir:
its not a status effect, so status potency does nothing.