Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Standardize "damage taken" modifier usage #7130

Merged
merged 2 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions scripts/effects/rampart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ effectObject.onEffectGain = function(target, effect)
local power = effect:getPower()

-- Regular effect
effect:addMod(xi.mod.SLASH_SDT, power)
effect:addMod(xi.mod.PIERCE_SDT, power)
effect:addMod(xi.mod.IMPACT_SDT, power)
effect:addMod(xi.mod.HTH_SDT, power)
effect:addMod(xi.mod.FIRE_SDT, power)
effect:addMod(xi.mod.ICE_SDT, power)
effect:addMod(xi.mod.WIND_SDT, power)
effect:addMod(xi.mod.EARTH_SDT, power)
effect:addMod(xi.mod.THUNDER_SDT, power)
effect:addMod(xi.mod.WATER_SDT, power)
effect:addMod(xi.mod.LIGHT_SDT, power)
effect:addMod(xi.mod.DARK_SDT, power)
effect:addMod(xi.mod.SLASH_SDT, -power)
effect:addMod(xi.mod.PIERCE_SDT, -power)
effect:addMod(xi.mod.IMPACT_SDT, -power)
effect:addMod(xi.mod.HTH_SDT, -power)
effect:addMod(xi.mod.FIRE_SDT, -power)
effect:addMod(xi.mod.ICE_SDT, -power)
effect:addMod(xi.mod.WIND_SDT, -power)
effect:addMod(xi.mod.EARTH_SDT, -power)
effect:addMod(xi.mod.THUNDER_SDT, -power)
effect:addMod(xi.mod.WATER_SDT, -power)
effect:addMod(xi.mod.LIGHT_SDT, -power)
effect:addMod(xi.mod.DARK_SDT, -power)

-- Iron will trait and augment. TODO: Why player only?
if target:isPC() and target:hasTrait(xi.trait.IRON_WILL) then
Expand Down
15 changes: 8 additions & 7 deletions scripts/effects/tomahawk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ effectObject.onEffectGain = function(target, effect)
local physSDT = { xi.mod.SLASH_SDT, xi.mod.PIERCE_SDT, xi.mod.IMPACT_SDT, xi.mod.HTH_SDT }

for i = 1, #physSDT do
local sdtModPhys = target:getMod(physSDT[i])
local reductionPhys = (1000 - sdtModPhys) * 0.25
local physicalSDTModifier = physSDT[i]
local physicalSDTValue = target:getMod(physicalSDTModifier)
local physicalSDTAdjustment = math.floor(physicalSDTValue * 0.25)

effect:addMod(physSDT[i], reductionPhys)
effect:addMod(physicalSDTModifier, -physicalSDTAdjustment)
end

for element = xi.element.FIRE, xi.element.DARK do
local elementSDTMod = xi.combat.element.getElementalSDTModifier(element)
local sdtModMagic = target:getMod(elementSDTMod)
local reductionMagic = sdtModMagic * 0.25
local elementSDTModifier = xi.combat.element.getElementalSDTModifier(element)
local elementSDTValue = target:getMod(elementSDTModifier)
local elementSDTAdjustment = math.floor(elementSDTValue * 0.25)

effect:addMod(elementSDTMod, -reductionMagic)
effect:addMod(elementSDTModifier, -elementSDTAdjustment)
end
end

Expand Down
8 changes: 4 additions & 4 deletions scripts/enum/mod.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ xi.mod =
DMG_AOE = 158, -- Mob only. Damage Taken % when not main target of an AoE action. (Ex: Locus Mobs). Uncaped.
RECEIVED_DAMAGE_CAP = 221, -- Caps the damage taken recieved by the attacker
RECEIVED_DAMAGE_VARIANT = 222, -- The variance that you want the damage cap to changed by. Ex: If you want the damage to be from 90-100 instead of a flat 100 you can set this to 10. It will random the value between 90-100 if the damage is above 100.
SLASH_SDT = 49, -- Overrides mob_resistances.sql. NOT base 10000. TODO: Change to work as all the others.
PIERCE_SDT = 50, -- Overrides mob_resistances.sql. NOT base 10000. TODO: Change to work as all the others.
IMPACT_SDT = 51, -- Overrides mob_resistances.sql. NOT base 10000. TODO: Change to work as all the others.
HTH_SDT = 52, -- Overrides mob_resistances.sql. NOT base 10000. TODO: Change to work as all the others.
SLASH_SDT = 49, -- Overrides mob_resistances.sql.
PIERCE_SDT = 50, -- Overrides mob_resistances.sql.
IMPACT_SDT = 51, -- Overrides mob_resistances.sql.
HTH_SDT = 52, -- Overrides mob_resistances.sql.
FIRE_SDT = 54, -- Overrides mob_resistances.sql.
ICE_SDT = 55, -- Overrides mob_resistances.sql.
WIND_SDT = 56, -- Overrides mob_resistances.sql.
Expand Down
10 changes: 5 additions & 5 deletions scripts/globals/automatonweaponskills.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,19 @@ xi.autows.doAutoPhysicalWeaponskill = function(attacker, target, wsID, tp, prima
if not wsParams.formless then
--finaldmg = target:physicalDmgTaken(finaldmg, attack.damageType)
if attack.weaponType == xi.skill.HAND_TO_HAND then
finaldmg = finaldmg * target:getMod(xi.mod.HTH_SDT) / 1000
finaldmg = finaldmg * (1 + target:getMod(xi.mod.HTH_SDT) / 10000)
elseif
attack.weaponType == xi.skill.DAGGER or
attack.weaponType == xi.skill.POLEARM
then
finaldmg = finaldmg * target:getMod(xi.mod.PIERCE_SDT) / 1000
finaldmg = finaldmg * (1 + target:getMod(xi.mod.PIERCE_SDT) / 10000)
elseif
attack.weaponType == xi.skill.CLUB or
attack.weaponType == xi.skill.STAFF
then
finaldmg = finaldmg * target:getMod(xi.mod.IMPACT_SDT) / 1000
finaldmg = finaldmg * (1 + target:getMod(xi.mod.IMPACT_SDT) / 10000)
else
finaldmg = finaldmg * target:getMod(xi.mod.SLASH_SDT) / 1000
finaldmg = finaldmg * (1 + target:getMod(xi.mod.SLASH_SDT) / 10000)
end
end

Expand Down Expand Up @@ -308,7 +308,7 @@ xi.autows.doAutoRangedWeaponskill = function(attacker, target, wsID, wsParams, t

-- Calculate reductions
finaldmg = target:rangedDmgTaken(finaldmg)
finaldmg = finaldmg * target:getMod(xi.mod.PIERCE_SDT) / 1000
finaldmg = finaldmg * (1 + target:getMod(xi.mod.PIERCE_SDT) / 10000)

finaldmg = finaldmg * xi.settings.main.WEAPON_SKILL_POWER -- Add server bonus
calcParams.finalDmg = finaldmg
Expand Down
8 changes: 4 additions & 4 deletions scripts/globals/job_utils/rune_fencer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ local function applyVallationValianceSDTMods(target, SDTTypes, power, effect, du
local newEffect = target:getStatusEffect(effect)

for _, SDT in ipairs(SDTTypes) do
target:addMod(SDT, power)
newEffect:addMod(SDT, power) -- due to order of events, this only adds mods to the container, not to the owner of the effect.
target:addMod(SDT, -power)
newEffect:addMod(SDT, -power) -- due to order of events, this only adds mods to the container, not to the owner of the effect.
end
end
end
Expand All @@ -310,8 +310,8 @@ local function applyGambitSDTMods(target, SDTTypes, power, effect, duration) --
local newEffect = target:getStatusEffect(effect)

for _, SDT in ipairs(SDTTypes) do
target:addMod(SDT, power)
newEffect:addMod(SDT, power) -- due to order of events, this only adds mods to the container, not to the owner of the effect.
target:addMod(SDT, -power)
newEffect:addMod(SDT, -power) -- due to order of events, this only adds mods to the container, not to the owner of the effect.
end
end
end
Expand Down
6 changes: 3 additions & 3 deletions scripts/globals/spells/damage_spell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ end
-- Mob elemental modifiers are populated by the values set in "mob_resistances.sql" (The database). SDT columns.
-- The value of the modifiers are base 10000. Positive numbers mean less damage taken. Negative mean more damage taken.
-- Examples:
-- A value of 5000 -> 50% LESS damage taken.
-- A value of -5000 -> 50% MORE damage taken.
-- A value of 5000 -> 50% MORE damage taken.
-- A value of -5000 -> 50% LESS damage taken.
-- A word on SDT as understood in some wikis, even if they are refering to resistance and not actual SDT
-- SDT under 50% applies a flat 1/2 *, which was for a long time confused with an additional resist tier, which, in reality, its an independent multiplier.
-- This is understandable, because in a way, it is effectively a whole tier, but recent testing with skillchains/magic bursts after resist was removed from them, proved this.
Expand All @@ -492,7 +492,7 @@ xi.spells.damage.calculateSDT = function(target, spellElement)
local sdt = 1 -- The variable we want to calculate

if spellElement > xi.element.NONE then
sdt = 1 - target:getMod(xi.combat.element.getElementalSDTModifier(spellElement)) / 10000
sdt = 1 + target:getMod(xi.combat.element.getElementalSDTModifier(spellElement)) / 10000
end

return utils.clamp(sdt, 0, 3)
Expand Down
10 changes: 5 additions & 5 deletions scripts/globals/weaponskills.lua
Original file line number Diff line number Diff line change
Expand Up @@ -343,19 +343,19 @@ local function modifyMeleeHitDamage(attacker, target, attackTbl, wsParams, rawDa
adjustedDamage = target:physicalDmgTaken(adjustedDamage, attackTbl.damageType)

if attackTbl.weaponType == xi.skill.HAND_TO_HAND then
adjustedDamage = adjustedDamage * target:getMod(xi.mod.HTH_SDT) / 1000
adjustedDamage = adjustedDamage * (1 + target:getMod(xi.mod.HTH_SDT) / 10000)
elseif
attackTbl.weaponType == xi.skill.DAGGER or
attackTbl.weaponType == xi.skill.POLEARM
then
adjustedDamage = adjustedDamage * target:getMod(xi.mod.PIERCE_SDT) / 1000
adjustedDamage = adjustedDamage * (1 + target:getMod(xi.mod.PIERCE_SDT) / 10000)
elseif
attackTbl.weaponType == xi.skill.CLUB or
attackTbl.weaponType == xi.skill.STAFF
then
adjustedDamage = adjustedDamage * target:getMod(xi.mod.IMPACT_SDT) / 1000
adjustedDamage = adjustedDamage * (1 + target:getMod(xi.mod.IMPACT_SDT) / 10000)
else
adjustedDamage = adjustedDamage * target:getMod(xi.mod.SLASH_SDT) / 1000
adjustedDamage = adjustedDamage * (1 + target:getMod(xi.mod.SLASH_SDT) / 10000)
end
end

Expand Down Expand Up @@ -882,7 +882,7 @@ xi.weaponskills.doRangedWeaponskill = function(attacker, target, wsID, wsParams,

-- Calculate reductions
finaldmg = target:rangedDmgTaken(finaldmg)
finaldmg = finaldmg * target:getMod(xi.mod.PIERCE_SDT) / 1000
finaldmg = finaldmg * (1 + target:getMod(xi.mod.PIERCE_SDT) / 10000)
finaldmg = math.floor(finaldmg)

-- Add in magic damage for hybrid weaponskills
Expand Down
18 changes: 8 additions & 10 deletions scripts/missions/amk/06_An_Errand_The_Professors_Price.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ mission.reward =
local orbKeyItems =
{
-- keyItem, mod, immune value, vulnerable value
{ xi.ki.ORB_OF_SWORDS, xi.mod.SLASH_SDT, 0, 1000 },
{ xi.ki.ORB_OF_CUPS, xi.mod.IMPACT_SDT, 0, 1000 },
{ xi.ki.ORB_OF_BATONS, xi.mod.PIERCE_SDT, 0, 1000 },
{ xi.ki.ORB_OF_COINS, xi.mod.UDMGMAGIC, -10000, 0 },
{ xi.ki.ORB_OF_SWORDS, xi.mod.SLASH_SDT },
{ xi.ki.ORB_OF_CUPS, xi.mod.IMPACT_SDT },
{ xi.ki.ORB_OF_BATONS, xi.mod.PIERCE_SDT },
{ xi.ki.ORB_OF_COINS, xi.mod.UDMGMAGIC },
}

local beginCardianFight = function(player, npc)
Expand All @@ -38,18 +38,16 @@ local beginCardianFight = function(player, npc)
-- Count KI's so we know how many Cardians to spawn
local removedKIs = 0
for _, entry in ipairs(orbKeyItems) do
local keyItemId = entry[1]
local immunity = entry[2]
local immuneValue = entry[3]
local vulnValue = entry[4]
local keyItemId = entry[1]
local immunity = entry[2]

if player:hasKeyItem(keyItemId) then
table.insert(modsToAdd, { immunity, vulnValue })
table.insert(modsToAdd, { immunity, 0 })

player:delKeyItem(keyItemId)
removedKIs = removedKIs + 1
else
table.insert(modsToAdd, { immunity, immuneValue })
table.insert(modsToAdd, { immunity, -10000 })
end
end

Expand Down
61 changes: 29 additions & 32 deletions scripts/zones/Grand_Palace_of_HuXzoi/mobs/Jailer_of_Temperance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,18 @@ entity.onMobInitialize = function(mob)
end

entity.onMobSpawn = function(mob)
-- Set AnimationSub to 0, put it in pot form
-- Change it's damage resists. Pot for take

-- Change animation to pot
mob:setAnimationSub(0)
-- Set the damage resists
mob:setMod(xi.mod.HTH_SDT, 1000)
mob:setMod(xi.mod.SLASH_SDT, 0)
mob:setMod(xi.mod.PIERCE_SDT, 0)
mob:setMod(xi.mod.IMPACT_SDT, 1000)
mob:setMod(xi.mod.HTH_SDT, 0)
mob:setMod(xi.mod.SLASH_SDT, -10000)
mob:setMod(xi.mod.PIERCE_SDT, -10000)
mob:setMod(xi.mod.IMPACT_SDT, 0)

-- Set the magic resists. It always takes no damage from direct magic
for element = xi.element.FIRE, xi.element.DARK do
mob:setMod(xi.combat.element.getElementalMEVAModifier(element), 0)
mob:setMod(xi.combat.element.getElementalSDTModifier(element), 10000)
mob:setMod(xi.combat.element.getElementalSDTModifier(element), -10000)
end
end

Expand All @@ -46,16 +43,16 @@ entity.onMobFight = function(mob)

-- We changed to Poles. Make it only take piercing.
if aniChange == 2 then
mob:setMod(xi.mod.HTH_SDT, 0)
mob:setMod(xi.mod.SLASH_SDT, 0)
mob:setMod(xi.mod.PIERCE_SDT, 1000)
mob:setMod(xi.mod.IMPACT_SDT, 0)
mob:setMod(xi.mod.HTH_SDT, -10000)
mob:setMod(xi.mod.SLASH_SDT, -10000)
mob:setMod(xi.mod.PIERCE_SDT, 0)
mob:setMod(xi.mod.IMPACT_SDT, -10000)
mob:setLocalVar('changeTime', mob:getBattleTime())
else -- We changed to Rings. Make it only take slashing.
mob:setMod(xi.mod.HTH_SDT, 0)
mob:setMod(xi.mod.SLASH_SDT, 1000)
mob:setMod(xi.mod.PIERCE_SDT, 0)
mob:setMod(xi.mod.IMPACT_SDT, 0)
mob:setMod(xi.mod.HTH_SDT, -10000)
mob:setMod(xi.mod.SLASH_SDT, 0)
mob:setMod(xi.mod.PIERCE_SDT, -10000)
mob:setMod(xi.mod.IMPACT_SDT, -10000)
mob:setLocalVar('changeTime', mob:getBattleTime())
end
-- We're in poles, but changing
Expand All @@ -68,17 +65,17 @@ entity.onMobFight = function(mob)
-- Changing to Pot, only take Blunt damage
if aniChange == 0 then
mob:setAnimationSub(0)
mob:setMod(xi.mod.HTH_SDT, 1000)
mob:setMod(xi.mod.SLASH_SDT, 0)
mob:setMod(xi.mod.PIERCE_SDT, 0)
mob:setMod(xi.mod.IMPACT_SDT, 1000)
mob:setMod(xi.mod.HTH_SDT, 0)
mob:setMod(xi.mod.SLASH_SDT, -10000)
mob:setMod(xi.mod.PIERCE_SDT, -10000)
mob:setMod(xi.mod.IMPACT_SDT, 0)
mob:setLocalVar('changeTime', mob:getBattleTime())
else -- Going to Rings, only take slashing
mob:setAnimationSub(3)
mob:setMod(xi.mod.HTH_SDT, 0)
mob:setMod(xi.mod.SLASH_SDT, 1000)
mob:setMod(xi.mod.PIERCE_SDT, 0)
mob:setMod(xi.mod.IMPACT_SDT, 0)
mob:setMod(xi.mod.HTH_SDT, -10000)
mob:setMod(xi.mod.SLASH_SDT, 0)
mob:setMod(xi.mod.PIERCE_SDT, -10000)
mob:setMod(xi.mod.IMPACT_SDT, -10000)
mob:setLocalVar('changeTime', mob:getBattleTime())
end
-- We're in rings, but going to change to pot or poles
Expand All @@ -91,17 +88,17 @@ entity.onMobFight = function(mob)

-- We're changing to pot form, only take blunt damage.
if aniChange == 0 or aniChange == 1 then
mob:setMod(xi.mod.HTH_SDT, 1000)
mob:setMod(xi.mod.SLASH_SDT, 0)
mob:setMod(xi.mod.PIERCE_SDT, 0)
mob:setMod(xi.mod.IMPACT_SDT, 1000)
mob:setLocalVar('changeTime', mob:getBattleTime())
else -- Changing to poles, only take piercing
mob:setMod(xi.mod.HTH_SDT, 0)
mob:setMod(xi.mod.SLASH_SDT, 0)
mob:setMod(xi.mod.PIERCE_SDT, 1000)
mob:setMod(xi.mod.SLASH_SDT, -10000)
mob:setMod(xi.mod.PIERCE_SDT, -10000)
mob:setMod(xi.mod.IMPACT_SDT, 0)
mob:setLocalVar('changeTime', mob:getBattleTime())
else -- Changing to poles, only take piercing
mob:setMod(xi.mod.HTH_SDT, -10000)
mob:setMod(xi.mod.SLASH_SDT, -10000)
mob:setMod(xi.mod.PIERCE_SDT, 0)
mob:setMod(xi.mod.IMPACT_SDT, -10000)
mob:setLocalVar('changeTime', mob:getBattleTime())
end
end
end
Expand Down
16 changes: 8 additions & 8 deletions scripts/zones/Temenos/mobs/Abyssdweller_Jhabdebb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ entity.onMobEngage = function(mob, target)
GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 7):isDead() and GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 8):isDead() and
GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 9):isDead() and GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 10):isDead()
then
mob:setMod(xi.mod.SLASH_SDT, 1400)
mob:setMod(xi.mod.PIERCE_SDT, 1400)
mob:setMod(xi.mod.IMPACT_SDT, 1400)
mob:setMod(xi.mod.HTH_SDT, 1400)
mob:setMod(xi.mod.SLASH_SDT, 4000)
mob:setMod(xi.mod.PIERCE_SDT, 4000)
mob:setMod(xi.mod.IMPACT_SDT, 4000)
mob:setMod(xi.mod.HTH_SDT, 4000)
else
mob:setMod(xi.mod.SLASH_SDT, 300)
mob:setMod(xi.mod.PIERCE_SDT, 300)
mob:setMod(xi.mod.IMPACT_SDT, 300)
mob:setMod(xi.mod.HTH_SDT, 300)
mob:setMod(xi.mod.SLASH_SDT, -7000)
mob:setMod(xi.mod.PIERCE_SDT, -7000)
mob:setMod(xi.mod.IMPACT_SDT, -7000)
mob:setMod(xi.mod.HTH_SDT, -7000)
end

GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 1):updateEnmity(target)
Expand Down
16 changes: 8 additions & 8 deletions scripts/zones/Temenos/mobs/Orichalcum_Quadav.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ entity.onMobEngage = function(mob, target)
GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 14):isDead() and GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 15):isDead() and
GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 16):isDead() and GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 17):isDead()
then
mob:setMod(xi.mod.SLASH_SDT, 1400)
mob:setMod(xi.mod.PIERCE_SDT, 1400)
mob:setMod(xi.mod.IMPACT_SDT, 1400)
mob:setMod(xi.mod.HTH_SDT, 1400)
mob:setMod(xi.mod.SLASH_SDT, 4000)
mob:setMod(xi.mod.PIERCE_SDT, 4000)
mob:setMod(xi.mod.IMPACT_SDT, 4000)
mob:setMod(xi.mod.HTH_SDT, 4000)
else
mob:setMod(xi.mod.SLASH_SDT, 300)
mob:setMod(xi.mod.PIERCE_SDT, 300)
mob:setMod(xi.mod.IMPACT_SDT, 300)
mob:setMod(xi.mod.HTH_SDT, 300)
mob:setMod(xi.mod.SLASH_SDT, -7000)
mob:setMod(xi.mod.PIERCE_SDT, -7000)
mob:setMod(xi.mod.IMPACT_SDT, -7000)
mob:setMod(xi.mod.HTH_SDT, -7000)
end

GetMobByID(ID.mob.TEMENOS_C_MOB[3]):updateEnmity(target)
Expand Down
16 changes: 8 additions & 8 deletions scripts/zones/Temenos/mobs/Pee_Qoho_the_Python.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ entity.onMobEngage = function(mob, target)
GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 20):isDead() and GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 21):isDead() and
GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 22):isDead() and GetMobByID(ID.mob.TEMENOS_C_MOB[3] + 23):isDead()
then
mob:setMod(xi.mod.SLASH_SDT, 1400)
mob:setMod(xi.mod.PIERCE_SDT, 1400)
mob:setMod(xi.mod.IMPACT_SDT, 1400)
mob:setMod(xi.mod.HTH_SDT, 1400)
mob:setMod(xi.mod.SLASH_SDT, 4000)
mob:setMod(xi.mod.PIERCE_SDT, 4000)
mob:setMod(xi.mod.IMPACT_SDT, 4000)
mob:setMod(xi.mod.HTH_SDT, 4000)
else
mob:setMod(xi.mod.SLASH_SDT, 300)
mob:setMod(xi.mod.PIERCE_SDT, 300)
mob:setMod(xi.mod.IMPACT_SDT, 300)
mob:setMod(xi.mod.HTH_SDT, 300)
mob:setMod(xi.mod.SLASH_SDT, -7000)
mob:setMod(xi.mod.PIERCE_SDT, -7000)
mob:setMod(xi.mod.IMPACT_SDT, -7000)
mob:setMod(xi.mod.HTH_SDT, -7000)
end

GetMobByID(ID.mob.TEMENOS_C_MOB[3]):updateEnmity(target)
Expand Down
Loading