Skip to content

Commit

Permalink
fix(Core/PvP): OutdoorPvPZM - fetch creature spawnId correctly (#21634)
Browse files Browse the repository at this point in the history
  • Loading branch information
PkllonG authored Mar 9, 2025
1 parent b9c3ed6 commit 5ec85e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/scripts/OutdoorPvP/OutdoorPvPZM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ void OPvPCapturePointZM_Graveyard::SetBeaconState(TeamId controlling_factionId)

bool OPvPCapturePointZM_Graveyard::CanTalkTo(Player* player, Creature* c, GossipMenuItems const& /*gso*/)
{
ObjectGuid guid = c->GetGUID();
auto itr = _creatureTypes.find(guid.GetCounter());
auto itr = _creatureTypes.find(c->GetSpawnId());
if (itr != _creatureTypes.end())
{
if (itr->second == ZM_ALLIANCE_FIELD_SCOUT && player->GetTeamId() == TEAM_ALLIANCE && m_BothControllingFactionId == TEAM_ALLIANCE && !m_FlagCarrierGUID && m_GraveyardState != ZM_GRAVEYARD_A)
Expand Down

0 comments on commit 5ec85e5

Please sign in to comment.