9
3

Feign.lua 616 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/AA/Feign.lua
  3. Script Author : neatz09
  4. Script Date : 2020.12.16 02:12:53
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Feigns Death with 100% chance of success
  9. -- Prevents AOE (except when direct)
  10. function cast(Caster, Target)
  11. -- Die animtaion and restricts movement
  12. SetServerControlFlag(Caster, 5, 1, 1);
  13. ClearHate(Target, Caster)
  14. SendMessage(Caster, "Your feign death succeeded", "yellow")
  15. AddImmunitySpell(7, Target)
  16. end
  17. function remove(Caster, Target)
  18. RemoveImmunitySpell(7, Target)
  19. SetServerControlFlag(Caster, 5, 1, 0);
  20. end