123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- --[[
- Script Name : Spells/Commoner/Pegasus.lua
- Script Author : neatz09
- Script Date : 2019.11.16 10:11:46
- Script Purpose :
- :
- --]]
- function precast(Caster)
- if GetMount(Caster) > 0 then
- return false
- end
- return true
- end
- function cast(Caster, Target, SkillAmt, Speed, Air)
- -- Summons a mount
- SetMount(Caster, 1814)
- 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 75%
- --Increases your Air Speed by 150%
- AddSpellBonus(Caster, 611, Speed)
- AddSpellBonus(Target, 612, Air)
- end
- function remove(Caster, Target)
- RemoveSpellBonus(Caster)
- RemoveSkillBonus(Caster)
- SetMount(Caster, 0)
- RemoveControlEffect(Caster, 12)
- end
|