[9948] Remove a few not needed checks in spell script effect

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-05-21 09:27:55 +02:00
parent 2591a2333a
commit 7151b4e538
2 changed files with 7 additions and 15 deletions

View file

@ -1504,7 +1504,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
} }
} }
((Creature*)unitTarget)->ForcedDespawn(); ((Creature*)unitTarget)->ForcedDespawn(5000);
return; return;
} }
case 51866: // Kick Nass case 51866: // Kick Nass
@ -5726,9 +5726,7 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
return; return;
// Ley Line Information // Ley Line Information
if (unitTarget->HasAura(47391, EFFECT_INDEX_0)) unitTarget->RemoveAurasDueToSpell(47391);
unitTarget->RemoveAurasDueToSpell(47391);
return; return;
} }
case 47615: // Atop the Woodlands: Quest Completion Script case 47615: // Atop the Woodlands: Quest Completion Script
@ -5737,9 +5735,7 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
return; return;
// Ley Line Information // Ley Line Information
if (unitTarget->HasAura(47473, EFFECT_INDEX_0)) unitTarget->RemoveAurasDueToSpell(47473);
unitTarget->RemoveAurasDueToSpell(47473);
return; return;
} }
case 47638: // The End of the Line: Quest Completion Script case 47638: // The End of the Line: Quest Completion Script
@ -5748,9 +5744,7 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
return; return;
// Ley Line Information // Ley Line Information
if (unitTarget->HasAura(47636, EFFECT_INDEX_0)) unitTarget->RemoveAurasDueToSpell(47636);
unitTarget->RemoveAurasDueToSpell(47636);
return; return;
} }
case 48603: // High Executor's Branding Iron case 48603: // High Executor's Branding Iron
@ -5838,10 +5832,8 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
if (!unitTarget) if (!unitTarget)
return; return;
// Remove aura given at quest accept / gossip // Remove aura (Mojo of Rhunok) given at quest accept / gossip
if (unitTarget->HasAura(51967)) // Mojo of Rhunok unitTarget->RemoveAurasDueToSpell(51967);
unitTarget->RemoveAurasDueToSpell(51967);
return; return;
} }
case 54729: // Winged Steed of the Ebon Blade case 54729: // Winged Steed of the Ebon Blade

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9947" #define REVISION_NR "9948"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__