*Fix the bug that triggers are visible.
--HG-- branch : trunk
This commit is contained in:
1 parent
e858ac91eb
commit
37f4bf6a04
5 files changed
+13
-8
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user