mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
22 lines
480 B
Lua
22 lines
480 B
Lua
require ("modifiers")
|
|
|
|
function onSpawn(mob)
|
|
mob:SetMod(modifiersGlobal.Speed, 0)
|
|
end
|
|
|
|
function onDamageTaken(mob, attacker, damage)
|
|
if not attacker:IsPlayer() and mob:GetHP() - damage < 0 then
|
|
mob:addHP(damage)
|
|
end
|
|
end
|
|
|
|
function onCombatTick(mob, target, tick, contentGroupCharas)
|
|
if mob:GetSpeed() == 0 then
|
|
mob:SetMod(modifiersGlobal.Speed, 8)
|
|
end
|
|
end
|
|
|
|
function onDisengage(mob)
|
|
mob:SetMod(modifiersGlobal.Speed, 0)
|
|
mob:Despawn()
|
|
end |