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

[svn] Make mobs scatter around in melee attack. Patch provided by smellbee.
Fix Join Instance Can Enter while Encounter is in Progress. Patch provided by mknjc.

Original author: megamage
Date: 2008-10-27 08:00:33-05:00

Files:
1 modified

Legend:

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

    r113 r118  
    9393        { 
    9494            //If we are within range melee the target 
    95             if (m_creature->IsWithinDistInMap(m_creature->getVictim(), ATTACK_DISTANCE)) 
     95            if (m_creature->IsWithinCombatDist(m_creature->getVictim(), ATTACK_DISTANCE)) 
    9696            { 
    9797                m_creature->AttackerStateUpdate(m_creature->getVictim()); 
     
    149149    { 
    150150        //If we are within range melee the target 
    151         if (m_creature->IsWithinDistInMap(m_creature->getVictim(), ATTACK_DISTANCE)) 
     151        if (m_creature->IsWithinCombatDist(m_creature->getVictim(), ATTACK_DISTANCE)) 
    152152        { 
    153153            m_creature->AttackerStateUpdate(m_creature->getVictim());