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

[svn] Send AttackStart? package when update visibility.
Update DoMeleeAttackIfReady? to support dual wield.
Show player modelid2 instead id3 of triggers. This should fix the bug that gameobject::castspell summon a human model.
Remove the correct flag to make creature attackable. This should fix the bug that Illidan and Magtheridon are unattackable.
Add NullCreatureAI for trinityscript.
Fix channeler's soul transfer.
Some update of black temple scripts.

Original author: megamage
Date: 2008-11-09 14:54:13-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/bindings/scripts/include/sc_creature.h

    r202 r203  
    182182    void AttackStart(Unit *); 
    183183}; 
     184 
     185struct TRINITY_DLL_DECL NullCreatureAI : public CreatureAI 
     186{ 
     187    NullCreatureAI(Creature* c) : m_creature(c) {} 
     188    ~NullCreatureAI() {} 
     189 
     190    Creature *m_creature; 
     191 
     192    void MoveInLineOfSight(Unit *) {} 
     193    void AttackStart(Unit *) {} 
     194    void EnterEvadeMode() {} 
     195    bool IsVisible(Unit *) const { return false; } 
     196 
     197    void UpdateAI(const uint32) {} 
     198}; 
     199 
    184200#endif