33 lines
701 B
Markdown
33 lines
701 B
Markdown
# 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.");
|
||
}
|
||
}
|
||
```
|