} 开发者ID:Arkania,项目名称:ArkCORE-NG,代码行数:6,代码来源:boss_drahga_shadowburner.cpp 注:本文中的SummonList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。
Map::PlayerListconst&PlayerList =map->GetPlayers();if(!PlayerList.isEmpty()) {for(Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i) {if(Player* player = i->GetSource()) {for(uint32 index =0; index <=4; ++index) player->RemoveAurasDueToSpell...
MaNGOS::AllIdenticalObjectsInRangeCheckcheck(this, GetMap()->GetVisibilityDistance()); MaNGOS::CreatureListSearcher<MaNGOS::AllIdenticalObjectsInRangeCheck> searcher(tlist, check); Cell::VisitGridObjects(this, searcher, GetMap()->GetVisibilityDistance(),true);for(std::list<Creature*>::const_iterato...
voidSummonList::DespawnAll(uint32 msTimeToDespawn) {while(!empty()) { Creature* summon = Unit::GetCreature(*me, *begin());if(!summon) erase(begin());else{ erase(begin());if(TempSummon* summ = summon->ToTempSummon()) { summon->DestroyForNearbyPlayers(); summ->UnSummon(msTimeToDes...
Map::PlayerListconst& PlayerList = me->GetInstanceScript()->instance->GetPlayers();if(!PlayerList.isEmpty()) {for(Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i) { Player* plr = i->GetSource();if(!plr)continue;if(plr->GetDistance2d(me) <10...
开发者ID:Arkania,项目名称:ArkCORE-NG,代码行数:24,代码来源:boss_ionar.cpp 示例3: CallBackSparks ▲点赞 3▼ //make sparks come backvoidCallBackSparks(){//should never beemptyhere, but checkif(lSparkList.empty())return; Position pos = me->GetPosition();for(ObjectGuid guid : lSparkList...