Scripts/Icecrown Citadel: Added hacky workaround for teleporting spells because their default target is not supported by current grid system

Scripts/Icecrown Citadel: Mark Gunship event as complete on Lady Deathwhisper's death (temporary, until transport system will fully allow scripting the event)

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-08-27 18:11:21 +02:00
parent f1d4933dcb
commit 5fbc8f1de4
5 changed files with 21 additions and 7 deletions
+2 -2
View File
@@ -2221,7 +2221,7 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
Unit *target = m_targets.getUnitTarget();
if (!target)
{
sLog.outError("SPELL: no unit target for spell ID %u\n", m_spellInfo->Id);
sLog.outError("SPELL: no unit target for spell ID %u", m_spellInfo->Id);
break;
}
@@ -2264,7 +2264,7 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
{
if (!m_targets.HasDst())
{
sLog.outError("SPELL: no destination for spell ID %u\n", m_spellInfo->Id);
sLog.outError("SPELL: no destination for spell ID %u", m_spellInfo->Id);
break;
}
+13
View File
@@ -3862,6 +3862,19 @@ void SpellMgr::LoadSpellCustomAttr()
mSpellCustomAttr[i] |= SPELL_ATTR_CU_IGNORE_ARMOR;
count++;
break;
// THESE SPELLS ARE WORKING CORRECTLY EVEN WITHOUT THIS HACK
// THE ONLY REASON ITS HERE IS THAT CURRENT GRID SYSTEM
// DOES NOT ALLOW FAR OBJECT SELECTION (dist > 333)
case 70781: // Light's Hammer Teleport
case 70856: // Oratory of the Damned Teleport
case 70857: // Rampart of Skulls Teleport
case 70858: // Deathbringer's Rise Teleport
case 70859: // Upper Spire Teleport
case 70860: // Frozen Throne Teleport
case 70861: // Sindragosa's Lair Teleport
spellInfo->EffectImplicitTargetA[0] = TARGET_DST_DB;
count++;
break;
default:
break;
}