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

[svn] Add function GameObject::CastSpell?. Used for hunter's trap and so.
Use original caster instead caster to check spell hit result.
Let spell triggers have the same faction as the summoner.
Fix the bug that trigger creatures attack enemy. (no need use civilian extra flag in the future, 128 is enough)
Fix shadow step.

Original author: megamage
Date: 2008-11-02 00:59:44-05:00

Files:
1 modified

Legend:

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

    r144 r145  
    19791979    } 
    19801980    // Init dest coordinates 
    1981     uint32 mapid = m_targets.m_mapId; 
     1981    int32 mapid = m_targets.m_mapId; 
     1982    if(mapid < 0) mapid = (int32)unitTarget->GetMapId(); 
    19821983    float x = m_targets.m_destX; 
    19831984    float y = m_targets.m_destY;