*Update spell selection.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-05-02 11:28:11 -05:00
1 parent a102098eb2
commit f303ee08c5
11 files changed
+671 -626

No files matched your search

+4 -4
View File
@@ -1960,7 +1960,7 @@ void Spell::EffectTriggerSpell(uint32 i)
bool instant = false;
for(uint32 j = i+1; j < 3; ++j)
{
if(m_spellInfo->Effect[j]==SPELL_EFFECT_INSTAKILL && m_spellInfo->EffectImplicitTargetA[j]==TARGET_SELF)
if(m_spellInfo->Effect[j]==SPELL_EFFECT_INSTAKILL && m_spellInfo->EffectImplicitTargetA[j]==TARGET_UNIT_CASTER)
{
instant = true;
break;
@@ -2007,7 +2007,7 @@ void Spell::EffectTeleportUnits(uint32 i)
return;
// If not exist data for dest location - return
if(!m_targets.HasDest())
if(!m_targets.HasDst())
{
sLog.outError( "Spell::EffectTeleportUnits - does not have destination for spell ID %u\n", m_spellInfo->Id );
return;
@@ -2031,7 +2031,7 @@ void Spell::EffectTeleportUnits(uint32 i)
unitTarget->SendMessageToSet(&data, false);
}
// post effects for TARGET_TABLE_X_Y_Z_COORDINATES
// post effects for TARGET_DST_DB
switch ( m_spellInfo->Id )
{
// Dimensional Ripper - Everlook
@@ -5463,7 +5463,7 @@ void Spell::EffectMomentMove(uint32 i)
if(unitTarget->isInFlight())
return;
if(!m_targets.HasDest())
if(!m_targets.HasDst())
return;
uint32 mapid = m_caster->GetMapId();