Skip to content

Getting HP/MP drains to proc on AE items #1260

Answered by TeoTwawki
hooksta4 asked this question in Q&A
Discussion options

You must be logged in to vote

the answer for both items was: damage was nil because a needed modifier was not set


for mjollnir:

I just get 0 return on MP. Assumed that 952 (potency) would pull that but it constantly hits for 0.

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TeoTwawki
Comment options

@hooksta4
Comment options

@TeoTwawki
Comment options

Answer selected by TeoTwawki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants