mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Scripts/Hyjal) First wave should not grant reputation (#21004)
This commit is contained in:
@@ -190,6 +190,8 @@ public:
|
|||||||
|
|
||||||
if (creature->IsSummon() && _bossWave != TO_BE_DECIDED)
|
if (creature->IsSummon() && _bossWave != TO_BE_DECIDED)
|
||||||
{
|
{
|
||||||
|
if (_currentWave == 0)
|
||||||
|
creature->SetDisableReputationGain(true);
|
||||||
DoUpdateWorldState(WORLD_STATE_ENEMYCOUNT, ++trash); // Update the instance wave count on new trash spawn
|
DoUpdateWorldState(WORLD_STATE_ENEMYCOUNT, ++trash); // Update the instance wave count on new trash spawn
|
||||||
_encounterNPCs.insert(creature->GetGUID()); // Used for despawning on wipe
|
_encounterNPCs.insert(creature->GetGUID()); // Used for despawning on wipe
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user