Files

529 B
Raw Permalink Blame History

MercanRey4.js — applyPotion() (satır 98)

← MercanRey4.js · ← Master

function applyPotion(entity, ids, duration, amplifier)
{
    if (entity == null || !entity.isLivingBase())
    {
        return;
    }

    for (var i = 0; i < ids.length; i++)
    {
        var potion = mappet.getPotion(ids[i]);

        if (potion != null)
        {
            entity.applyPotion(potion, duration, amplifier, false);
            return;
        }
    }
}