Skip to content

Commit

Permalink
fix: Allow guildstone movement within the same house (#2031)
Browse files Browse the repository at this point in the history
- Adjusted condition to prevent unnecessary "one guildstone per house" restriction when moving the guildstone inside the same house since the guildstone does not disappear after teleporter generation.

Refactors the teleportation logic for improved user experience.
  • Loading branch information
Senion31 authored Dec 27, 2024
1 parent 2bff1d2 commit e8a199e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Projects/UOContent/Items/Guilds/GuildTeleporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public override void OnDoubleClick(Mobile from)
{
from.SendLocalizedMessage(501141); // You can only place a guildstone in a house you own!
}
else if (house.FindGuildstone() != null)
else if (house.FindGuildstone() != null && house.FindGuildstone() != _stone)
{
from.SendLocalizedMessage(501142); // Only one guildstone may reside in a given house.
}
Expand Down

0 comments on commit e8a199e

Please sign in to comment.