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.cpp

    r186 r203  
    201201            m_creature->AttackerStateUpdate(m_creature->getVictim()); 
    202202            m_creature->resetAttackTimer(); 
     203        } 
     204    } 
     205    if (m_creature->haveOffhandWeapon() && m_creature->isAttackReady(OFF_ATTACK) && !m_creature->IsNonMeleeSpellCasted(false)) 
     206    { 
     207        //If we are within range melee the target 
     208        if (m_creature->IsWithinCombatDist(m_creature->getVictim(), ATTACK_DISTANCE)) 
     209        { 
     210            m_creature->AttackerStateUpdate(m_creature->getVictim(), OFF_ATTACK); 
     211            m_creature->resetAttackTimer(OFF_ATTACK); 
    203212        } 
    204213    }