9
3

Concussion.lua 804 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Guardian/Concussion.lua
  3. Script Author : Dello
  4. Script Date : 2013.08.11 02:08:51
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, SkillAmt)
  9. AddSkillBonus(Target, GetSkillIDByName("Ordination"), SkillAmt)
  10. AddSkillBonus(Target, GetSkillIDByName("Ministration"), SkillAmt)
  11. AddSkillBonus(Target, GetSkillIDByName("Disruption"), SkillAmt)
  12. AddSkillBonus(Target, GetSkillIDByName("Subjugation"), SkillAmt)
  13. if MaxVal ~= nil and MinVal < MaxVal then
  14. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  15. else
  16. SpellDamage(Target, DmgType, MinVal)
  17. end
  18. end
  19. function remove(Caster, Target)
  20. RemoveSkillBonus(Target)
  21. end