Show
Ignore:
Timestamp:
11/19/08 13:39:50 (17 years ago)
Author:
yumileroy
Message:

[svn] Improve TargetedMovement? (TODO: let mob find "near angle" rather than "random angle").
Delete a repeated check in instance canenter().
Fix some spell targets.
Add some sunwell spell sql.
Fix Magtheridons earthquake. (TODO: need to find out why soul transfer has no effect when casted by mobs)
Let Brutallus dual wield. Enable burn (still no script effect).
Quick fix for shadowmoon valley illidan quest crash (wait for author's fix).

Original author: megamage
Date: 2008-10-31 21:42:00-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/SpellEffects.cpp

    r136 r141  
    19831983            return; 
    19841984        } 
    1985         case TARGET_TABLE_X_Y_Z_COORDINATES: 
    1986         { 
    1987             // TODO: Only players can teleport? 
    1988             if (unitTarget->GetTypeId() != TYPEID_PLAYER) 
    1989                 return; 
    1990             SpellTargetPosition const* st = spellmgr.GetSpellTargetPosition(m_spellInfo->Id); 
    1991             if(!st) 
    1992             { 
    1993                 sLog.outError( "Spell::EffectTeleportUnits - unknown Teleport coordinates for spell ID %u\n", m_spellInfo->Id ); 
    1994                 return; 
    1995             } 
    1996             ((Player*)unitTarget)->TeleportTo(st->target_mapId,st->target_X,st->target_Y,st->target_Z,st->target_Orientation,unitTarget==m_caster ? TELE_TO_SPELL : 0); 
    1997             break; 
    1998         } 
    19991985        default: 
    20001986        { 
    20011987            // If not exist data for dest location - return 
    2002             if(!(m_targets.m_targetMask & TARGET_FLAG_DEST_LOCATION)) 
     1988            if(!m_targets.HasDest()) 
    20031989            { 
    20041990                sLog.outError( "Spell::EffectTeleportUnits - unknown EffectImplicitTargetB[%u] = %u for spell ID %u\n", i, m_spellInfo->EffectImplicitTargetB[i], m_spellInfo->Id );