9
3

Brag.lua 821 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : taunt.lua
  3. Script Purpose : Generic Taunt script
  4. Script Author : John Adams
  5. Script Date : 2008.12.07
  6. --]]
  7. function cast(Caster, Target, TauntType, MinTauntVal, MaxTauntVal)
  8. -- Taunt component
  9. if MaxTauntVal ~= nil and MinTauntVal < MaxTauntVal then
  10. hateAmount = math.random(MinTauntVal, MaxTauntVal)
  11. AddHate(Caster, Target, hateAmount)
  12. else
  13. AddHate(Caster, Target, MinTauntVal)
  14. end
  15. end
  16. function tick(Caster, Target, TauntType, MinTauntVal, MaxTauntVal)
  17. if MaxTauntVal ~= nil and MinTauntVal < MaxTauntVal then
  18. hateAmount = math.random(MinTauntVal, MaxTauntVal)
  19. AddHate(Caster, Target, hateAmount)
  20. else
  21. AddHate(Caster, Target, MinTauntVal)
  22. end
  23. end
  24. function remove(Caster, Target, TauntType, MinTauntVal, MaxTauntVal)
  25. end