Core/Spells: Revert d7e0190726 and solve it differently.
All totems have TARGET_UNIT_CASTER as implicit target except from Wrath of Air and Flametongue. To make Glyph of Totem of Wrath work again modified these 2 totems to be the same as the other totems. This still makes the 2 totems not stackable. Fixes #3293
This commit is contained in:
@@ -88,12 +88,7 @@ void Totem::InitSummon()
|
||||
{
|
||||
if (m_type == TOTEM_PASSIVE)
|
||||
{
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(GetSpell());
|
||||
// use AddAura instead of CastSpell if it's a passive aura - this in fact should be an AddSpell equivalent for creatures, but nothing like that exists so far.
|
||||
if (spellInfo->Attributes & SPELL_ATTR0_PASSIVE)
|
||||
AddAura(spellInfo->Id, this);
|
||||
else
|
||||
CastSpell(this, spellInfo->Id, true);
|
||||
CastSpell(this, GetSpell(), true);
|
||||
}
|
||||
|
||||
// Some totems can have both instant effect and passive spell
|
||||
|
||||
Reference in New Issue
Block a user