Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Precast(spell)
- if spell.action_type == 'Magic' then
- equip(sets.Precast.FastCast)
- end
- if spell.type == 'WeaponSkill' then
- if spell.target.distance > 6.0 then
- add_to_chat(167,''..spell.target.name..' is too far can not use '..spell.name..'!!!. Cancelling WeaponSkill ')
- cancel_spell()
- return
- elseif spell.name == "Requiescat" then
- equip(sets.Requiescat[sets.Requiescat.index[Requiescat_index]])
- elseif spell.english == "Chant du Cygne" then
- equip(sets.ChantDuCygne[sets.ChantDuCygne.index[ChantDuCygne_index]])
- elseif spell.english == "Sanguine Blade" then
- equip(sets.SanguineBlade[sets.SanguineBlade.index[SanguineBlade_index]])
- else equip(sets.ChantDuCygne.Attack)
- end
- end
- --Abilities requiring swap BEFORE use--
- if sets.Precast[spell.english] then
- equip(sets.Precast[spell.english])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement