Core/Spells: Mana potions in druid forms (#21160)

* Fix mana potions in druid forms
This commit is contained in:
DanVS authored and Aokromes committed 2018-01-14 05:58:12 +01:00
1 parent 1d36eb24de
commit eba81f5268
1 file changed
+2 -1
+2 -1
View File
@@ -1579,7 +1579,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)