fix(Scripts/ICC): make Blood Queen Lana'thel IsVampire check difficulty-aware (#25349)
This commit is contained in:
@@ -83,9 +83,14 @@ enum Shadowmourne
|
|||||||
|
|
||||||
bool IsVampire(Unit const* unit)
|
bool IsVampire(Unit const* unit)
|
||||||
{
|
{
|
||||||
if (unit->HasAnyAuras(SPELL_ESSENCE_OF_BLOOD_QUEEN, SPELL_ESSENCE_OF_THE_BLOOD_QUEEN_PLR, SPELL_FRENZIED_BLOODTHIRST))
|
if (!unit)
|
||||||
return true;
|
return false;
|
||||||
return false;
|
|
||||||
|
return unit->HasAnyAuras(
|
||||||
|
sSpellMgr->GetSpellIdForDifficulty(SPELL_ESSENCE_OF_BLOOD_QUEEN, unit),
|
||||||
|
sSpellMgr->GetSpellIdForDifficulty(SPELL_ESSENCE_OF_THE_BLOOD_QUEEN_PLR, unit),
|
||||||
|
sSpellMgr->GetSpellIdForDifficulty(SPELL_FRENZIED_BLOODTHIRST, unit)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Events
|
enum Events
|
||||||
|
|||||||
Reference in New Issue
Block a user