mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core): Crashfix. (#12093)
This commit is contained in:
@@ -125,7 +125,13 @@ public:
|
||||
{
|
||||
if (HealthBelowPct(50) && !health50)
|
||||
{
|
||||
Talk(SAY_TURMOIL_HALF_HP, me->ToTempSummon()->GetSummonerUnit()->ToPlayer());
|
||||
WorldObject* summoner = nullptr;
|
||||
if (TempSummon const* tempSummon = me->ToTempSummon())
|
||||
{
|
||||
summoner = tempSummon->GetSummonerUnit();
|
||||
}
|
||||
|
||||
Talk(SAY_TURMOIL_HALF_HP, summoner);
|
||||
health50 = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user