mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
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)
|
||||
{
|
||||
if (unit->HasAnyAuras(SPELL_ESSENCE_OF_BLOOD_QUEEN, SPELL_ESSENCE_OF_THE_BLOOD_QUEEN_PLR, SPELL_FRENZIED_BLOODTHIRST))
|
||||
return true;
|
||||
return false;
|
||||
if (!unit)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user