Scripts/Spells: Removed redundant code for spell 54798.

Closes #519

Signed-off-by: Subv <s.v.h21@hotmail.com>
This commit is contained in:
Subv
2012-04-07 21:09:04 -05:00
parent fd9c4d9c43
commit f8e9dedbe5
2 changed files with 4 additions and 15 deletions

View File

@@ -5618,21 +5618,6 @@ void AuraEffect::HandlePeriodicDummyAuraTick(Unit* target, Unit* caster) const
caster->CastCustomSpell(66153, SPELLVALUE_MAX_TARGETS, urand(1, 6), target, true);
break;
}
case 54798: // FLAMING Arrow Triggered Effect
{
if (!caster || !target || !target->ToCreature() || !caster->GetVehicle() || target->HasAura(54683))
break;
target->CastSpell(target, 54683, true);
// Credit Frostworgs
if (target->GetEntry() == 29358)
caster->CastSpell(caster, 54896, true);
// Credit Frost Giants
else if (target->GetEntry() == 29351)
caster->CastSpell(caster, 54893, true);
break;
}
case 62292: // Blaze (Pool of Tar)
// should we use custom damage?
target->CastSpell((Unit*)NULL, m_spellInfo->Effects[m_effIndex].TriggerSpell, true);

View File

@@ -636,6 +636,10 @@ class spell_q12851_going_bearback : public SpellScriptLoader
if (Unit* caster = GetCaster())
{
Unit* target = GetTarget();
// Already in fire
if (target->HasAura(SPELL_ABLAZE))
return;
if (Player* player = caster->GetCharmerOrOwnerPlayerOrPlayerItself())
{
switch (target->GetEntry())