[8208] Add part support for spell 33525. Author: NoFantasy
Also let spell 33652 trigger when aura from 33572 reach full effect. --HG-- branch : trunk
This commit is contained in:
+14
-1
@@ -2541,6 +2541,9 @@ void AuraEffect::TriggerSpell()
|
|||||||
case 29213:
|
case 29213:
|
||||||
case 54835:
|
case 54835:
|
||||||
caster->CastSpell(m_target, trigger_spell_id, true, NULL, this);
|
caster->CastSpell(m_target, trigger_spell_id, true, NULL, this);
|
||||||
|
// Ground Slam
|
||||||
|
case 33525:
|
||||||
|
target->CastSpell(target, trigger_spell_id, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4388,12 +4391,22 @@ void AuraEffect::HandleAuraModIncreaseSwimSpeed(bool /*apply*/, bool Real, bool
|
|||||||
m_target->UpdateSpeed(MOVE_SWIM, true);
|
m_target->UpdateSpeed(MOVE_SWIM, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AuraEffect::HandleAuraModDecreaseSpeed(bool /*apply*/, bool Real, bool changeAmount)
|
void AuraEffect::HandleAuraModDecreaseSpeed(bool apply, bool Real, bool changeAmount)
|
||||||
{
|
{
|
||||||
// all applied/removed only at real aura add/remove
|
// all applied/removed only at real aura add/remove
|
||||||
if(!Real && !changeAmount)
|
if(!Real && !changeAmount)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (apply)
|
||||||
|
{
|
||||||
|
// Gronn Lord's Grasp, becomes stoned
|
||||||
|
if (GetId() == 33572)
|
||||||
|
{
|
||||||
|
if (GetParentAura()->GetStackAmount() >= 5 && !m_target->HasAura(33652))
|
||||||
|
m_target->CastSpell(m_target, 33652, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_target->UpdateSpeed(MOVE_RUN, true);
|
m_target->UpdateSpeed(MOVE_RUN, true);
|
||||||
m_target->UpdateSpeed(MOVE_SWIM, true);
|
m_target->UpdateSpeed(MOVE_SWIM, true);
|
||||||
m_target->UpdateSpeed(MOVE_FLIGHT, true);
|
m_target->UpdateSpeed(MOVE_FLIGHT, true);
|
||||||
|
|||||||
+1
-1
@@ -8829,7 +8829,7 @@ int32 Unit::DealHeal(Unit *pVictim, uint32 addhealth, SpellEntry const *spellPro
|
|||||||
|
|
||||||
Unit* unit = this;
|
Unit* unit = this;
|
||||||
|
|
||||||
if( GetTypeId()==TYPEID_UNIT && ((Creature*)this)->isTotem() && ((Totem*)this)->GetTotemType()!=TOTEM_STATUE)
|
if( GetTypeId()==TYPEID_UNIT && ((Creature*)this)->isTotem())
|
||||||
unit = GetOwner();
|
unit = GetOwner();
|
||||||
|
|
||||||
if (unit->GetTypeId()==TYPEID_PLAYER)
|
if (unit->GetTypeId()==TYPEID_PLAYER)
|
||||||
|
|||||||
Reference in New Issue
Block a user