Core/Battlegrounds/IoC: fix fortress teleport pads

(and replace a hack with an other hack)

Closes #5846
Closes #7993
Ref #8984
This commit is contained in:
joschiwald
2013-09-05 00:59:22 +02:00
parent d5d0802262
commit 7ef1f0738b
4 changed files with 35 additions and 26 deletions

View File

@@ -2072,8 +2072,6 @@ class spell_q12641_death_comes_from_on_high : public SpellScriptLoader
{
uint32 spellId = 0;
TC_LOG_DEBUG(LOG_FILTER_SPELLS_AURAS, "spell_q12641_death_comes_from_on_high:: Caster: %s (GUID: %u) On Hit Target: Creature: %s (Entry: %u GUID: %u)",
GetOriginalCaster()->GetName().c_str(), GetOriginalCaster()->GetGUIDLow(), GetHitCreature()->GetName().c_str(), GetHitCreature()->GetEntry(), GetHitCreature()->GetGUIDLow());
switch (GetHitCreature()->GetEntry())
{
case NPC_NEW_AVALON_FORGE:
@@ -2092,7 +2090,7 @@ class spell_q12641_death_comes_from_on_high : public SpellScriptLoader
return;
}
GetOriginalCaster()->CastSpell((Unit*)NULL, spellId, true);
GetCaster()->CastSpell((Unit*)NULL, spellId, true);
}
void Register() OVERRIDE