21 lines
428 B
Markdown
21 lines
428 B
Markdown
# MercanRey1.js — applyPotion() (satır 251)
|
||
|
||
[← MercanRey1.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function applyPotion(entity, id, duration, amplifier)
|
||
{
|
||
if (entity == null || !entity.isLivingBase())
|
||
{
|
||
return;
|
||
}
|
||
|
||
var potion = mappet.getPotion(id);
|
||
|
||
if (potion != null)
|
||
{
|
||
entity.applyPotion(potion, duration, amplifier, false);
|
||
}
|
||
}
|
||
```
|