chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768)
This commit is contained in:
@@ -577,8 +577,7 @@ namespace lfg
|
||||
rDungeonId = (*dungeons.begin());
|
||||
sScriptMgr->OnPlayerQueueRandomDungeon(player, rDungeonId);
|
||||
}
|
||||
// No break on purpose (Random can only be dungeon or heroic dungeon)
|
||||
[[fallthrough]];
|
||||
[[fallthrough]]; // On purpose (Random can only be dungeon or heroic dungeon)
|
||||
case LFG_TYPE_HEROIC:
|
||||
case LFG_TYPE_DUNGEON:
|
||||
if (isRaid)
|
||||
|
||||
@@ -562,8 +562,6 @@ void GameObject::Update(uint32 diff)
|
||||
m_lootState = GO_READY; // for other GOis same switched without delay to GO_READY
|
||||
break;
|
||||
}
|
||||
|
||||
// NO BREAK for switch (m_lootState)
|
||||
[[fallthrough]];
|
||||
}
|
||||
case GO_READY:
|
||||
|
||||
@@ -17198,8 +17198,10 @@ void Unit::Kill(Unit* killer, Unit* victim, bool durabilityLoss, WeaponAttackTyp
|
||||
killer->ToCreature()->AI()->KilledUnit(victim);
|
||||
|
||||
// Call creature just died function
|
||||
if (creature->IsAIEnabled)
|
||||
creature->AI()->JustDied(killer ? killer : victim);
|
||||
if (CreatureAI* ai = creature->AI())
|
||||
{
|
||||
ai->JustDied(killer);
|
||||
}
|
||||
|
||||
if (TempSummon* summon = creature->ToTempSummon())
|
||||
if (Unit* summoner = summon->GetSummonerUnit())
|
||||
|
||||
Reference in New Issue
Block a user