*Fix the bug that triggers are visible.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-03 21:47:38 -05:00
parent e858ac91eb
commit 37f4bf6a04
5 changed files with 13 additions and 8 deletions

View File

@@ -168,15 +168,18 @@ void OPvPWintergrasp::ChangeDefender()
m_timer = 600000; // for test, should be 2 hour 30 min
}
uint32 OPvPWintergrasp::GetCreatureEntry(uint32 guidlow, uint32 entry)
uint32 OPvPWintergrasp::GetCreatureEntry(uint32 guidlow, const CreatureData *data)
{
if(m_defender == TEAM_ALLIANCE)
{
TeamPairMap::const_iterator itr = m_creEntryPair.find(entry);
TeamPairMap::const_iterator itr = m_creEntryPair.find(data->id);
if(itr != m_creEntryPair.end())
{
const_cast<CreatureData*>(data)->displayid = 0;
return itr->second;
}
}
return entry;
return data->id;
}
void OPvPWintergrasp::OnCreatureCreate(Creature *creature, bool add)