WardenoftheForest.lua 859 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Priest/Druid/Warden/WardenoftheForest.lua
  3. Script Author : theFoof
  4. Script Date : 2014.1.14
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Focus, PhysMit, Resists)
  9. -- Shapechanges caster into a wolf
  10. -- Grants See Invisibility to caster ***not yet scripted***
  11. -- Increases Focus of caster by 8.1
  12. -- Increases Mitigation of caster vs physical damage by 90
  13. -- Increases Mitigation of caster vs elemental, noxious and arcane damage by 342
  14. AddSkillBonus(Target, GetSkillIDByName("Focus"), Focus)
  15. AddSpellBonus(Target, 200, PhysMit)
  16. AddSpellBonus(Target, 201, Resists)
  17. AddSpellBonus(Target, 202, Resists)
  18. AddSpellBonus(Target, 203, Resists)
  19. SetIllusion(Target, 216)
  20. end
  21. function remove(Caster, Target)
  22. RemoveSpellBonus(Target)
  23. ResetIllusion(Target)
  24. end