mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(Core/PvP): OutdoorPvPZM - fetch creature spawnId correctly (#21634)
This commit is contained in:
@@ -338,8 +338,7 @@ void OPvPCapturePointZM_Graveyard::SetBeaconState(TeamId controlling_factionId)
|
|||||||
|
|
||||||
bool OPvPCapturePointZM_Graveyard::CanTalkTo(Player* player, Creature* c, GossipMenuItems const& /*gso*/)
|
bool OPvPCapturePointZM_Graveyard::CanTalkTo(Player* player, Creature* c, GossipMenuItems const& /*gso*/)
|
||||||
{
|
{
|
||||||
ObjectGuid guid = c->GetGUID();
|
auto itr = _creatureTypes.find(c->GetSpawnId());
|
||||||
auto itr = _creatureTypes.find(guid.GetCounter());
|
|
||||||
if (itr != _creatureTypes.end())
|
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)
|
if (itr->second == ZM_ALLIANCE_FIELD_SCOUT && player->GetTeamId() == TEAM_ALLIANCE && m_BothControllingFactionId == TEAM_ALLIANCE && !m_FlagCarrierGUID && m_GraveyardState != ZM_GRAVEYARD_A)
|
||||||
|
|||||||
Reference in New Issue
Block a user