Files

22 lines
464 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Darklord.js — applyPotionSafe() (satır 3004)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
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;
}
```