Implements Paralysis

This commit is contained in:
2025-05-19 15:30:57 +02:00
parent 0d03a8f28d
commit 9d2c2de17a
3 changed files with 30 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
using PkmnLib.Static.Moves;
using PkmnLib.Static.Utils;
namespace PkmnLib.Plugin.Gen7.Scripts.Status;
@@ -30,6 +31,15 @@ public class Burned : Script
if (_target == null)
return;
var damage = (uint)(_target.MaxHealth / 16f);
_target.Damage(damage, DamageSource.Status);
var eventBatch = new EventBatchId();
battle.EventHook.Invoke(new DialogEvent("hurt_by_burn", new Dictionary<string, object>
{
{ "pokemon", _target },
{ "damage", damage },
})
{
BatchId = eventBatch,
});
_target.Damage(damage, DamageSource.Status, eventBatch);
}
}