Skip to content

Commit

Permalink
Fix issue with Hooker hookgroup check [ci skip] (#3524)
Browse files Browse the repository at this point in the history
  • Loading branch information
LtRipley36706 authored Apr 13, 2021
1 parent 2afc81f commit c7ddc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ACE.Server/WorldObjects/Hooker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c7ddc26

Please sign in to comment.