Synergism.lua 982 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Illusionist/Synergism.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.31 06:01:53
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On a hostile spell hit this spell has a 33% chance to cast Dynamism on target of spell.
  9. -- Decreases Threat to target by 160 - 196
  10. -- If profession other than Fighter
  11. -- Inflicts 70 - 86 mental damage on target
  12. function cast(Caster, Target, HateLow, HateHigh, DmgType, MinVal, MaxVal)
  13. AddProc(Target, 5, 33)
  14. end
  15. function proc(Caster, Target, Type, HateLow, HateHigh, DmgType, MinVal, MaxVal)
  16. if type == 15 then
  17. ProcDamage(Caster, Target, "Dynamism", Hate, DmgType, MinVal, MaxVal)
  18. local Class = GetArchetypeName(Target)
  19. local Hate = math.random(HateLow, HateHigh)
  20. if Class > 0 and Class < 11 then
  21. ProcHate(Caster, Target, Hate, "Dynamism")
  22. end
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveProc(Target)
  27. end