StrikingCobra.lua 665 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Monk/StrikingCobra.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.13 02:01:18
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, SkillAmt)
  9. Say(Caster, "need to add iflasthit to script.")
  10. -- Inflicts 49 - 82 melee damage on target
  11. if MaxVal ~= nil and MinVal < MaxVal then
  12. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  13. else
  14. SpellDamage(Target, DmgType, MinVal)
  15. end
  16. -- Decreases Defense of target by 1.3
  17. AddSkillBonus(Target, GetSkillIDByName("Defense"), SkillAmt)
  18. end