mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-20 06:59:46 -04:00
*Fix the bug that totem can only apply the first aura effect.
--HG-- branch : trunk
This commit is contained in:
+3
-1
@@ -4306,7 +4306,7 @@ bool Unit::HasAura(Aura * aur) const
|
||||
bool Unit::HasAuraEffect(uint32 spellId, uint8 effIndex, uint64 caster) const
|
||||
{
|
||||
if (Aura * aur = GetAura(spellId, caster))
|
||||
return bool(aur->HasEffect(effIndex));
|
||||
return aur->HasEffect(effIndex);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -13615,6 +13615,8 @@ Aura * Unit::AddAuraEffect(const SpellEntry * spellInfo, uint8 effIndex, Unit* c
|
||||
// can't do that for passive auras - they stack from same caster so there is no way to get exact aura which should get effect
|
||||
//assert (!IsPassiveSpell(spellInfo));
|
||||
|
||||
sLog.outDebug("AddAuraEffect: spell id: %u, effect index: %u", spellInfo->Id, (uint32)effIndex);
|
||||
|
||||
Aura *aur = GetAura(spellInfo->Id, caster->GetGUID());
|
||||
|
||||
if (aur)
|
||||
|
||||
Reference in New Issue
Block a user