[8517] Implement glyph 42747.

This commit is contained in:
VladimirMangos 2009-09-21 01:17:01 +04:00
parent 53fb04dc14
commit 9b57017256
2 changed files with 9 additions and 1 deletions

View file

@ -448,6 +448,13 @@ m_isRemovedOnShapeLost(true), m_in_use(0), m_deleted(false)
m_spellProto->Stances && m_spellProto->Stances &&
!(m_spellProto->AttributesEx2 & SPELL_ATTR_EX2_NOT_NEED_SHAPESHIFT) && !(m_spellProto->AttributesEx2 & SPELL_ATTR_EX2_NOT_NEED_SHAPESHIFT) &&
!(m_spellProto->Attributes & SPELL_ATTR_NOT_SHAPESHIFT)); !(m_spellProto->Attributes & SPELL_ATTR_NOT_SHAPESHIFT));
if (caster && m_spellProto->Id == 22959) // Improved Scorch
{
// Glyph of Improved Scorch
if (Aura* glyph = caster->GetDummyAura(56371))
m_stackAmount = glyph->GetModifier()->m_amount;
}
} }
Aura::~Aura() Aura::~Aura()

View file

@ -3438,7 +3438,8 @@ bool Unit::AddAura(Aura *Aur)
// Aura can stack on self -> Stack it; // Aura can stack on self -> Stack it;
if(aurSpellInfo->StackAmount) if(aurSpellInfo->StackAmount)
{ {
i2->second->modStackAmount(1); // can be created with >1 stack by some spell mods
i2->second->modStackAmount(Aur->GetStackAmount());
delete Aur; delete Aur;
return false; return false;
} }