fix(CORE/Spells): Druid forms (#1732)
* Added SpellFamilyName != SPELLFAMILY_POTION (Druids are able to use potions in Bear, Cat form also).
This commit is contained in:
parent
80c2025cd9
commit
dca6fcfaaf
1 changed files with 2 additions and 1 deletions
|
|
@ -1892,7 +1892,8 @@ void Spell::EffectEnergize(SpellEffIndex effIndex)
|
|||
|
||||
Powers power = Powers(m_spellInfo->Effects[effIndex].MiscValue);
|
||||
|
||||
if (unitTarget->GetTypeId() == TYPEID_PLAYER && unitTarget->getPowerType() != power && !m_spellInfo->HasAttribute(SPELL_ATTR7_CAN_RESTORE_SECONDARY_POWER))
|
||||
if (unitTarget->GetTypeId() == TYPEID_PLAYER && unitTarget->getPowerType() != power && m_spellInfo->SpellFamilyName != SPELLFAMILY_POTION
|
||||
&& !m_spellInfo->HasAttribute(SPELL_ATTR7_CAN_RESTORE_SECONDARY_POWER))
|
||||
return;
|
||||
|
||||
if (unitTarget->GetMaxPower(power) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue