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

[svn] Add Unit::IsWithinCombatDist? function to check melee range and spell range (now range is related to the attacker's bounding_radius and target's combat_reach, not sure if both should be combat_reach).

Original author: megamage
Date: 2008-10-19 14:42:12-05:00

Files:
1 modified

Legend:

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

    r44 r69  
    134134    { 
    135135        //If we are within range melee the target 
    136         if( m_creature->IsWithinDistInMap(m_creature->getVictim(), ATTACK_DISTANCE)) 
     136        if( m_creature->IsWithinCombatDist(m_creature->getVictim(), ATTACK_DISTANCE)) 
    137137        { 
    138138            m_creature->AttackerStateUpdate(m_creature->getVictim());