Skip to content

Commit

Permalink
Core/Spells: Periodic Dummy for spell 54798. Fixes quest 12851
Browse files Browse the repository at this point in the history
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
  • Loading branch information
sarjuuk authored and Machiavell1 committed Jan 6, 2011
1 parent 7aa8572 commit dfc848b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/server/game/Spells/Auras/SpellAuraEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1929,6 +1929,30 @@ void AuraEffect::PeriodicDummyTick(Unit * target, Unit * caster) const
// 7053 Forsaken Skill: Shadow
return;
}
case 54798: // FLAMING Arrow Triggered Effect
{
if (!target->ToCreature() || !caster->ToCreature()->IsVehicle())
return;

Unit *rider = caster->GetVehicleKit()->GetPassenger(0);
if (!rider)
return;

// set ablaze
if (target->HasAuraEffect(54683, EFFECT_0))
return;
else
target->CastSpell(target, 54683, true);

// Credit Frostworgs
if (target->ToCreature()->GetEntry() == 29358)
rider->CastSpell(rider, 54896, true);
// Credit Frost Giants
else if (target->ToCreature()->GetEntry() == 29351)
rider->CastSpell(rider, 54893, true);

break;
}
case 62292: // Blaze (Pool of Tar)
// should we use custom damage?
target->CastSpell((Unit*)NULL, m_spellProto->EffectTriggerSpell[m_effIndex], true);
Expand Down

0 comments on commit dfc848b

Please sign in to comment.