Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #406 from 59blargedy/Metatron
Browse files Browse the repository at this point in the history
script was checking for attack down instead of defense down
  • Loading branch information
zircon-tpl authored Mar 13, 2020
2 parents d853f47 + 4289cda commit 8985d2a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/globals/weaponskills/metatron_torment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ function onUseWeaponSkill(player, target, wsID, tp, primary, action, taChar)

local damage, criticalHit, tpHits, extraHits = doPhysicalWeaponskill(player, target, wsID, params, tp, action, primary, taChar)
if damage > 0 then
if not target:hasStatusEffect(tpz.effect.ATTACK_DOWN) then
local duration = tp / 1000 * 20 * applyResistanceAddEffect(player, target, tpz.magic.ele.WIND, 0)
target:addStatusEffect(tpz.effect.DEFENSE_DOWN, 19, 0, duration)
end

local duration = tp / 1000 * 20 * applyResistanceAddEffect(player, target, tpz.magic.ele.WIND, 0)
target:addStatusEffect(tpz.effect.DEFENSE_DOWN, 19, 0, duration)

-- Apply aftermath
tpz.aftermath.addStatusEffect(player, tp, tpz.slot.MAIN, tpz.aftermath.type.RELIC)
end
Expand Down

0 comments on commit 8985d2a

Please sign in to comment.