Core/Misc: more warning fixes (some of them were real logical flaws - comparison of unrelated types) (Thanks to Tassader for pointing out that one line was completely unnecessary)
This commit is contained in:
@@ -1022,18 +1022,15 @@ public:
|
||||
if (!instance)
|
||||
return;
|
||||
|
||||
if (Unit::GetCreature(*me, instance->GetData64(DATA_MALYGOS)))
|
||||
if (Unit* summoner = me->ToTempSummon()->GetSummoner())
|
||||
{
|
||||
if (Unit* summoner = me->ToTempSummon()->GetSummoner())
|
||||
if (Creature* malygos = Unit::GetCreature(*me, instance->GetData64(DATA_MALYGOS)))
|
||||
{
|
||||
summoner->CastSpell(me, SPELL_RIDE_RED_DRAGON, true);
|
||||
if (Creature* malygos = Unit::GetCreature(*me, instance->GetData64(DATA_MALYGOS)))
|
||||
{
|
||||
float victim_threat = malygos->getThreatManager().getThreat(summoner);
|
||||
malygos->getThreatManager().resetAllAggro();
|
||||
malygos->AI()->AttackStart(me);
|
||||
malygos->AddThreat(me, victim_threat);
|
||||
}
|
||||
float victim_threat = malygos->getThreatManager().getThreat(summoner);
|
||||
malygos->getThreatManager().resetAllAggro();
|
||||
malygos->AI()->AttackStart(me);
|
||||
malygos->AddThreat(me, victim_threat);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user