MaleficFury.lua 883 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Commoner/MaleficFury.lua
  3. Script Author : neatz09
  4. Script Date : 2020.05.29 07:05:32
  5. Script Purpose : handles the subspell for item wicked wand of malice.
  6. :
  7. --]]
  8. -- On a hostile spell cast this spell will cast Malefic Fury on target of spell.
  9. -- Inflicts 229 mental damage on target
  10. -- Increases Threat to target by 1,660
  11. -- Cannot be modified except by direct means
  12. function cast(Caster, Target)
  13. AddProc(Caster, 5, 100)
  14. AddSpellBonus(Caster, 664, 10)
  15. Say(Caster, "spell bonus 664 temporarily")
  16. end
  17. function proc(Caster, Target, DmgType, Dmg, Hate)
  18. if Type == 5 then
  19. SpellDamage(Target, DmgType, Dmg, nil, 2, 1)
  20. AddHate(Caster, Target, Hate, 1)
  21. end
  22. end
  23. function remove(Caster, Target)
  24. RemoveProc(Caster)
  25. RemoveSpellBonus(Target)
  26. end