mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
Scripts/Spells: Handle quest tame spells in spell script (#27022)
(cherry picked from commit 4441d42253)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user