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": [ "properties": [
{ {
"name": "Harrower", "name": "Harrower",
"type": "Server.Mobile", "type": "Server.Mobiles.Harrower",
"rule": "SerializableInterfaceMigrationRule" "rule": "SerializableInterfaceMigrationRule"
} }
] ]

View file

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