mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 17:49:20 +02:00
10 lines
222 B
Lua
10 lines
222 B
Lua
function onUse(player, item, fromPosition, target, toPosition)
|
|
if math.random(1, 100) <= 90 then
|
|
item:getPosition():sendMagicEffect(3)
|
|
return true
|
|
else
|
|
player:getPosition():sendMagicEffect(3)
|
|
end
|
|
return true
|
|
end
|