mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-01 22:56:39 +01:00
Core/Spells: Implemented evoker empower spell mechanic
This commit is contained in:
@@ -1290,6 +1290,9 @@ SpellInfo::SpellInfo(SpellNameEntry const* spellName, ::Difficulty difficulty, S
|
||||
CooldownAuraSpellId = _cooldowns->AuraSpellID;
|
||||
}
|
||||
|
||||
// SpellEmpowerStageEntry
|
||||
std::ranges::transform(data.EmpowerStages, std::back_inserter(EmpowerStageThresholds), [](SpellEmpowerStageEntry const* stage) { return Milliseconds(stage->DurationMs); });
|
||||
|
||||
// SpellEquippedItemsEntry
|
||||
if (SpellEquippedItemsEntry const* _equipped = data.EquippedItems)
|
||||
{
|
||||
@@ -1743,6 +1746,11 @@ bool SpellInfo::IsAutoRepeatRangedSpell() const
|
||||
return HasAttribute(SPELL_ATTR2_AUTO_REPEAT);
|
||||
}
|
||||
|
||||
bool SpellInfo::IsEmpowerSpell() const
|
||||
{
|
||||
return !EmpowerStageThresholds.empty();
|
||||
}
|
||||
|
||||
bool SpellInfo::HasInitialAggro() const
|
||||
{
|
||||
return !(HasAttribute(SPELL_ATTR1_NO_THREAT) || HasAttribute(SPELL_ATTR2_NO_INITIAL_THREAT) || HasAttribute(SPELL_ATTR4_NO_HARMFUL_THREAT));
|
||||
|
||||
Reference in New Issue
Block a user