WardenoftheForest.lua 931 B

1234567891011121314151617181920212223242526272829
  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. SetSeeInvis(Target,1)
  15. AddSkillBonus(Target, GetSkillIDByName("Focus"), Focus)
  16. AddSpellBonus(Target, 200, PhysMit)
  17. AddSpellBonus(Target, 201, Resists)
  18. AddSpellBonus(Target, 202, Resists)
  19. AddSpellBonus(Target, 203, Resists)
  20. SetIllusion(Target, 216)
  21. end
  22. function remove(Caster, Target)
  23. RemoveSpellBonus(Target)
  24. ResetIllusion(Target)
  25. SetSeeInvis(Target,0)
  26. end