mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-14 07:19:20 +02:00
9 lines
210 B
Lua
9 lines
210 B
Lua
local food = {
|
|
3577, 3582, 3585, 3592, 3602
|
|
}
|
|
|
|
function onCastSpell(creature, variant)
|
|
creature:addItem(food[math.random(#food)])
|
|
creature:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
|
|
return true
|
|
end |