Scripts/Spells: Handle quest tame spells in spell script (#27022)

(cherry picked from commit 4441d42253)
This commit is contained in:
offl
2021-10-07 16:03:38 +03:00
committed by Shauren
parent 64a91288d6
commit 2e3f240051
5 changed files with 132 additions and 38 deletions

View File

@@ -1409,14 +1409,6 @@ bool SpellInfo::IsLootCrafting() const
return HasEffect(SPELL_EFFECT_CREATE_RANDOM_ITEM) || HasEffect(SPELL_EFFECT_CREATE_LOOT);
}
bool SpellInfo::IsQuestTame() const
{
if (GetEffects().size() < 2)
return false;
return GetEffect(EFFECT_0).Effect == SPELL_EFFECT_THREAT && GetEffect(EFFECT_1).Effect == SPELL_EFFECT_APPLY_AURA && GetEffect(EFFECT_1).ApplyAuraName == SPELL_AURA_DUMMY;
}
bool SpellInfo::IsProfession() const
{
for (SpellEffectInfo const& effect : GetEffects())