RunicArmor.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Priest/Shaman/Mystic/RunicArmor.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.13 06:12:49
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- VIII and above missing max health portion of script - Neatz09
  10. function cast(Caster, Target, WardValue, MitValue)
  11. -- Wards group members (AE) against 4 points of physical damage
  12. AddWard(WardValue)
  13. -- Increases Mitigation of group members (AE) vs physical damage by 93
  14. -- If not fighter
  15. local group = GetGroup(Caster)
  16. if group ~= nil then
  17. for key, value in pairs(group) do
  18. if value and GetArchetypeName(value) ~= "fighter" then
  19. -- AddSpellBonus(value, 204, MitValue)
  20. -- AddSpellBonus(value, 205, MitValue)
  21. -- AddSpellBonus(value, 206, MitValue)
  22. end
  23. end
  24. end
  25. end
  26. function remove(Caster, Target)
  27. RemoveWard()
  28. RemoveSpellBonus(Target)
  29. end