529 B
529 B
MercanRey4.js — applyPotion() (satır 98)
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;
}
}
}