9
3

MysticMoppetDisguise.lua 605 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Commoner/MysticMoppetDisguise.lua
  3. Script Author : neatz09
  4. Script Date : 2020.03.03 02:03:54
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster)
  9. return not IsInCombat(Caster)
  10. end
  11. -- Applies Mystic Moppet Disguise when activated.
  12. function cast(Caster, Target)
  13. -- Shapechanges caster into a Form of a mystic moppet.
  14. SetIllusion(Caster, 149)
  15. -- Shrinks caster by 40.0%
  16. AddSpellBonus(Caster, 628, 40)
  17. -- This effect cannot be cast during combat
  18. end
  19. function remove(Caster, Target)
  20. ResetIllusion(Caster)
  21. end