Changeset 145 for trunk/src/game/Spell.h

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/Spell.h

    r142 r145  
    112112            //m_srcZ = target.m_srcZ; 
    113113 
    114             m_mapId = 0; 
     114            m_mapId = -1; 
    115115            m_destX = target.m_destX; 
    116116            m_destY = target.m_destY; 
     
    128128        Unit *getUnitTarget() const { return m_unitTarget; } 
    129129        void setUnitTarget(Unit *target); 
    130         void setDestination(float x, float y, float z, bool send = true, uint32 mapId = 0); 
     130        void setDestination(float x, float y, float z, bool send = true, int32 mapId = -1); 
    131131        void setDestination(Unit *target, bool send = true); 
    132132 
     
    156156 
    157157        float m_srcX, m_srcY, m_srcZ; 
    158         uint32 m_mapId; 
     158        int32 m_mapId; 
    159159        float m_destX, m_destY, m_destZ; 
    160160        bool m_hasDest;