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

[svn] Add new function SelectUnit? and SelectUnitList? to select target or targets with check "isPlayer" and "isWithinDist". Also add target type SELECT_TARGET_NEAREST and SELECT_TARGET_FARTHEST.
SpellEffect? Fix for 40802,29364,43723,41931. Patch provided by WarHead?.
Update script of Fathom Lord. Patch provided by Blaymoira.

Original author: megamage
Date: 2008-10-28 16:28:42-05:00

Files:
1 modified

Legend:

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

    r109 r130  
    147147    //Selects a unit from the creature's current aggro list 
    148148    Unit* SelectUnit(SelectAggroTarget target, uint32 position); 
     149    Unit* SelectUnit(SelectAggroTarget target, uint32 position, float dist, bool playerOnly); 
     150    void SelectUnitList(std::list<Unit*> &targetList, uint32 num, SelectAggroTarget target, float dist, bool playerOnly); 
    149151 
    150152    //Returns spells that meet the specified criteria from the creatures spell list