123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- --[[
- Script Name : Spells/Commoner/ViciousMountainSaliraptor.lua
- Script Author : Skywalker646
- Script Date : 2020.02.02 01:02:12
- Script Purpose :
- :
- --]]
- function precast(Caster)
- if GetMount(Caster) > 0 then
- return false
- end
- return true
- end
- function cast(Caster, Target, SkillAmt, Ground, Air)
- -- Summons a mount
- SetMount(Caster, 15561)
- -- Mez the target.
- AddControlEffect(Caster, 12)
- -- Increase Focus, Disruption, Ministration, Subjugation, Ordination, Slashing, Piercing, Crushing,
- --Aggression and Ranged of caster by 5
- AddSkillBonus(Caster, GetSkillIDByName("Focus"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Disruption"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Ministration"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Subjugation"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Ordination"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Aggression"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
- --Increases your ground speed by 60%
- --Increases your air speed by 200%
- AddSpellBonus(Caster, 611, Ground)
- AddSpellBonus(Target, 612, Air)
- Say(Caster, "This is a leaper mount not a flier, leapers not implemented.")
- end
- function remove(Caster, Target)
- RemoveSpellBonus(Caster)
- RemoveSkillBonus(Caster)
- SetMount(Caster, 0)
- RemoveControlEffect(Caster, 13)
- end
|