Skip to content

Commit

Permalink
Merge pull request #4614 from kelppo/automaton-fix
Browse files Browse the repository at this point in the history
Pass wsID to xi.weaponskills.takeWeaponskillDamage()
  • Loading branch information
claywar authored Oct 24, 2023
2 parents 8e6050d + 5afa98f commit 15f1d32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/actions/weaponskills/atonement.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary,
}
local calcParams =
{
wsID = wsID,
criticalHit = false,
tpHitsLanded = 0,
extraHitsLanded = 0,
Expand Down
2 changes: 2 additions & 0 deletions scripts/globals/automatonweaponskills.lua
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ xi.autows.doAutoPhysicalWeaponskill = function(attacker, target, wsID, tp, prima
}

local calcParams = {}
calcParams.wsID = wsID
calcParams.weaponDamage = xi.weaponskills.getMeleeDmg(attacker, attack.weaponType, wsParams.kick)
calcParams.attackInfo = attack
calcParams.fSTR = utils.clamp(attacker:getStat(xi.mod.STR) - target:getStat(xi.mod.VIT), -10, 10)
Expand Down Expand Up @@ -282,6 +283,7 @@ xi.autows.doAutoRangedWeaponskill = function(attacker, target, wsID, wsParams, t

local calcParams =
{
wsID = wsID,
weaponDamage = { wsParams.weaponDamage or rangedDamage },
attackInfo = attack,
fSTR = utils.clamp(attacker:getStat(xi.mod.STR) - target:getStat(xi.mod.VIT), -10, 10),
Expand Down

0 comments on commit 15f1d32

Please sign in to comment.