From c7ddc26aae8aa599a6001bf4498018dfc76c151e Mon Sep 17 00:00:00 2001 From: Ty Conner Date: Tue, 13 Apr 2021 19:01:49 -0400 Subject: [PATCH] Fix issue with Hooker hookgroup check [ci skip] (#3524) --- Source/ACE.Server/WorldObjects/Hooker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ACE.Server/WorldObjects/Hooker.cs b/Source/ACE.Server/WorldObjects/Hooker.cs index a006ac8e65..108b708bb8 100644 --- a/Source/ACE.Server/WorldObjects/Hooker.cs +++ b/Source/ACE.Server/WorldObjects/Hooker.cs @@ -48,7 +48,7 @@ public override ActivationResult CheckUseRequirements(WorldObject activator) return new ActivationResult(new GameEventWeenieError(player.Session, WeenieError.YouAreNotPermittedToUseThatHook)); var myHookGroup = HookGroup ?? HookGroupType.Undef; - if ((myHookGroup == HookGroupType.PortalItems || myHookGroup == HookGroupType.SpellTeachingItems) && hook.HouseType != HouseType.Mansion) + if ((myHookGroup == HookGroupType.PortalItems || myHookGroup == HookGroupType.SpellTeachingItems) && hook.House.HouseType != HouseType.Mansion) return new ActivationResult(new GameEventWeenieError(player.Session, WeenieError.YouAreNotPermittedToUseThatHook)); var baseRequirements = base.CheckUseRequirements(activator);