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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user