Skip to content

Commit

Permalink
fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
SeT committed Sep 29, 2011
1 parent be876f0 commit c099774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Spells/Auras/SpellAuraEffects.cpp
Expand Up @@ -761,7 +761,7 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
amount *= GetBase()->GetStackAmount();

// Mixology - increase effect and duration of alchemy spells which the caster has
if (GetBase()->GetUnitOwner()->GetTypeId() == TYPEID_PLAYER)
if (GetBase()->GetType() == UNIT_AURA_TYPE && GetBase()->GetUnitOwner() && GetBase()->GetUnitOwner()->GetTypeId() == TYPEID_PLAYER)
{
if (GetSpellProto()->SpellFamilyName == SPELLFAMILY_POTION &&
(sSpellMgr->IsSpellMemberOfSpellGroup(GetSpellProto()->Id, SPELL_GROUP_ELIXIR_BATTLE) ||
Expand Down

0 comments on commit c099774

Please sign in to comment.