*Fix Savage Roar

*Fix Glyph of Thorns.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-12 20:29:49 +02:00
parent d48ec1752f
commit ac8f322f21
4 changed files with 23 additions and 1 deletions
+5 -1
View File
@@ -398,6 +398,11 @@ m_auraSlot(MAX_AURAS), m_auraLevel(1), m_procCharges(0), m_stackAmount(1),m_aura
if(!m_permanent && modOwner)
{
// Glyph of Thorns
if (m_target == caster && m_spellProto->SpellFamilyName==SPELLFAMILY_DRUID && m_spellProto->SpellFamilyFlags[0] & 0x100)
if (AuraEffect * aurEff = m_target->GetDummyAura(57862))
m_maxduration += aurEff->GetAmount() * MINUTE * IN_MILISECONDS;
modOwner->ApplySpellMod(GetId(), SPELLMOD_DURATION, m_maxduration);
// Get zero duration aura after - need set m_maxduration > 0 for apply/remove aura work
if (m_maxduration<=0)
@@ -2754,7 +2759,6 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real, bool changeAmount)
return;
}
}
// Lifebloom
if ( GetSpellProto()->SpellFamilyFlags[1] & 0x10 )
{
+7
View File
@@ -5814,6 +5814,13 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
{
switch(dummySpell->Id)
{
// Savage Roar (aura recast on return to cat form)
case 52610:
{
target = this;
triggered_spell_id = 62071;
break;
}
// Leader of the Pack
case 24932:
{