diff options
author | megamage <none@none> | 2009-05-29 00:18:41 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-29 00:18:41 -0500 |
commit | bc32144310e94e0c7e62c7cd7119bfdd4e719e6f (patch) | |
tree | edb4c10942113f366058e8dd3b51e30a30559989 /src/game/GridNotifiersImpl.h | |
parent | 1288761fb704be6d3c24e8480a809f66200ddf04 (diff) |
*Update OutdoorPvP functions. No longer need creature triggers for capture points.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiersImpl.h')
-rw-r--r-- | src/game/GridNotifiersImpl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/GridNotifiersImpl.h b/src/game/GridNotifiersImpl.h index d4413b9f777..6502c2ea7c8 100644 --- a/src/game/GridNotifiersImpl.h +++ b/src/game/GridNotifiersImpl.h @@ -554,6 +554,15 @@ void Trinity::CreatureListSearcher<Check>::Visit(CreatureMapType &m) } template<class Check> +void Trinity::PlayerListSearcher<Check>::Visit(PlayerMapType &m) +{ + for(PlayerMapType::iterator itr=m.begin(); itr != m.end(); ++itr) + if(itr->getSource()->InSamePhase(i_phaseMask)) + if( i_check(itr->getSource())) + i_objects.push_back(itr->getSource()); +} + +template<class Check> void Trinity::PlayerSearcher<Check>::Visit(PlayerMapType &m) { // already found |