Files

464 B
Raw Permalink Blame History

Darklord.js — applyPotionSafe() (satır 3004)

← Darklord.js · ← Master

function applyPotionSafe(player, id, ticks, amplifier, particles)
{
    try
    {
        var potion = mappet.getPotion(id);
        if (potion != null)
        {
            player.applyPotion(potion, ticks, amplifier, particles);
            return true;
        }
    }
    catch (e) {}

    return false;
}