|
2 | 2 | -- Gale Axe |
3 | 3 | -- Axe weapon skill |
4 | 4 | -- Skill level: 70 |
5 | | --- Chokes enemy. Duration of effect varies with TP. |
| 5 | +-- Deals wind elemental damage. Chokes target. Chance of choking varies with TP. |
6 | 6 | -- Will stack with Sneak Attack. |
7 | 7 | -- Aligned with the Breeze Gorget. |
8 | 8 | -- Aligned with the Breeze Belt. |
|
15 | 15 | local weaponskillObject = {} |
16 | 16 |
|
17 | 17 | weaponskillObject.onUseWeaponSkill = function(player, target, wsID, tp, primary, action, taChar) |
18 | | - local params = {} |
| 18 | + local params = {} |
19 | 19 | params.numHits = 1 |
20 | | - params.ftpMod = { 1.0, 1.0, 1.0 } |
| 20 | + params.ftpMod = { 1.0, 1.0, 1.0 } |
21 | 21 | params.str_wsc = 0.3 |
22 | 22 |
|
23 | 23 | if xi.settings.main.USE_ADOULIN_WEAPON_SKILL_CHANGES then |
24 | 24 | params.str_wsc = 1.0 |
25 | 25 | end |
26 | 26 |
|
27 | 27 | local damage, criticalHit, tpHits, extraHits = xi.weaponskills.doPhysicalWeaponskill(player, target, wsID, params, tp, action, primary, taChar) |
| 28 | + |
| 29 | + -- Handle status effect |
| 30 | + local effectId = xi.effect.CHOKE |
| 31 | + local actionElement = xi.element.WIND |
| 32 | + local power = 5 |
| 33 | + local skillType = xi.skill.AXE |
| 34 | + local resist = xi.combat.magicHitRate.calculateResistRate(player, target, 0, skillType, 0, actionElement, 0, effectId, 0) |
| 35 | + local duration = math.floor(60 * resist) |
| 36 | + xi.weaponskills.handleWeaponskillEffect(player, target, effectId, actionElement, damage, power, duration) |
| 37 | + |
28 | 38 | return tpHits, extraHits, criticalHit, damage |
29 | 39 | end |
30 | 40 |
|
|
0 commit comments