This repository has been archived by the owner on Dec 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 221
/
Copy pathbattle_dance.lua
54 lines (50 loc) · 1.75 KB
/
battle_dance.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
-----------------------------------------
-- Spell: Battle Dance
-- Delivers an area attack. Additional effect: DEX Down. Duration of effect varies with TP
-- Spell cost: 12 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 3
-- Stat Bonus: DEX+2
-- Level: 12
-- Casting Time: 1 second
-- Recast Time: 10 seconds
-- Skillchain Element(s): Lightning (can open Liquefaction or Detonation can close Impaction or Fusion)
-- Combos: Attack Bonus
-----------------------------------------
require("scripts/globals/bluemagic")
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0
end
function onSpellCast(caster,target,spell)
local params = {}
-- This data should match information on http://wiki.ffxiclopedia.org/wiki/Calculating_Blue_Magic_Damage
params.tpmod = TPMOD_DURATION
params.dmgtype = tpz.damageType.SLASHING
params.scattr = SC_IMPACTION
params.numhits = 1
params.multiplier = 2.0
params.tp150 = 2.0
params.tp300 = 2.0
params.azuretp = 2.0
params.duppercap = 17
params.str_wsc = 0.3
params.dex_wsc = 0.0
params.vit_wsc = 0.0
params.agi_wsc = 0.0
params.int_wsc = 0.0
params.mnd_wsc = 0.0
params.chr_wsc = 0.0
damage = BluePhysicalSpell(caster, target, spell, params)
damage = BlueFinalAdjustments(caster, target, spell, damage, params)
if (target:hasStatusEffect(tpz.effect.DEX_DOWN)) then
spell:setMsg(tpz.msg.basic.MAGIC_NO_EFFECT) -- no effect
else
target:addStatusEffect(tpz.effect.DEX_DOWN,15,0,20)
end
return damage
end