fix: Fixes tentacles not getting removed from harrower's list (#2239)

This commit is contained in:
Kamron Batman 2025-07-24 14:18:16 -07:00 committed by GitHub
parent 2df62fba5a
commit 1e2f4b1171
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -4,7 +4,7 @@
"properties": [
{
"name": "Harrower",
"type": "Server.Mobile",
"type": "Server.Mobiles.Harrower",
"rule": "SerializableInterfaceMigrationRule"
}
]

View file

@ -11,10 +11,10 @@ public partial class HarrowerTentacles : BaseCreature
[SerializableField(0)]
[SerializedCommandProperty(AccessLevel.GameMaster)]
private Mobile _harrower;
private Harrower _harrower;
[Constructible]
public HarrowerTentacles(Mobile harrower = null) : base(AIType.AI_Melee)
public HarrowerTentacles(Harrower harrower = null) : base(AIType.AI_Melee)
{
_harrower = harrower;
Body = 129;
@ -101,6 +101,7 @@ public partial class HarrowerTentacles : BaseCreature
_timer = null;
base.OnAfterDelete();
Harrower?.RemoveFromTentacles(this);
}
private class DrainTimer : Timer