Files

33 lines
701 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.
# MercanRey3.js — punishLeaving() (satır 103)
[← MercanRey3.js](index.md) · [← Master](../../wiki.md)
```javascript
function punishLeaving(entity, casterName)
{
applyPotion(entity, ["nausea", "confusion"], 90, 0);
applyPotion(entity, ["blindness"], 45, 0);
try
{
var yaw = Number(entity.getYaw()) + 100 + Math.floor(mappet.random(80));
entity.setRotations(entity.getPitch(), yaw, yaw);
}
catch (e)
{}
try
{
entity.damage(4.0);
}
catch (e)
{}
if (entity.isPlayer())
{
entity.sendActionBar("Insignia de Caballero: isaretten kopunca yon algin kirildi.");
}
}
```