Implements Paralysis
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user