fix(Core/PvP): OutdoorPvPZM - fetch creature spawnId correctly (#21634)
This commit is contained in:
parent
b9c3ed63e8
commit
5ec85e527a
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue