mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-11 05:59:21 +02:00
7.4 life fluid and mana fluid healiing
This commit is contained in:
parent
be0d0a3f59
commit
4644388a6d
@ -45,10 +45,10 @@ function onUse(player, item, fromPosition, target, toPosition)
|
|||||||
elseif self and item:getFluidType() == FLUID_SLIME then
|
elseif self and item:getFluidType() == FLUID_SLIME then
|
||||||
player:addCondition(poison)
|
player:addCondition(poison)
|
||||||
elseif item:getFluidType() == FLUID_MANAFLUID then
|
elseif item:getFluidType() == FLUID_MANAFLUID then
|
||||||
target:addMana(math.random(50, 100))
|
target:addMana(math.random(25, 75))
|
||||||
target:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
|
target:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
|
||||||
elseif item:getFluidType() == FLUID_LIFEFLUID then
|
elseif item:getFluidType() == FLUID_LIFEFLUID then
|
||||||
target:addHealth(math.random(25, 50))
|
target:addHealth(math.random(25, 75))
|
||||||
target:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
|
target:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user