MagisShielding.lua 792 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Mage/MagisShielding.lua
  3. Script Author : Zcoretri
  4. Script Date : 2013.07.12 12:28:39
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, StatBonus, SkillBonus, PhysMitBonus, MitBonus)
  9. AddSpellBonus(Target, 1, StatBonus) -- STA
  10. AddSkillBonus(Target, GetSkillIDByName("Focus"), SkillBonus)
  11. AddSkillBonus(Target, GetSkillIDByName("Defense"), SkillBonus)
  12. AddSpellBonus(Target, 200, PhysMitBonus) -- vs Physical Damage
  13. AddSpellBonus(Target, 201, MitBonus) -- vs Elemental
  14. AddSpellBonus(Target, 202, MitBonus) -- vs Noxiuos
  15. AddSpellBonus(Target, 203, MitBonus) -- vs Arcane
  16. end
  17. function remove(Caster, Target)
  18. RemoveSpellBonus(Target)
  19. RemoveSkillBonus(Target)
  20. end