Changeset 80 for trunk/src/game/OutdoorPvPHP.cpp
- Timestamp:
- 11/19/08 13:32:28 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/OutdoorPvPHP.cpp
r44 r80 318 318 { 319 319 if(Player * plr = objmgr.GetPlayer(*itr)) 320 plr->CastSpell(plr,AllianceBuff,true);320 if(plr->IsInWorld()) plr->CastSpell(plr,AllianceBuff,true); 321 321 } 322 322 for(std::set<uint64>::iterator itr = m_PlayerGuids[1].begin(); itr != m_PlayerGuids[1].end(); ++itr) 323 323 { 324 324 if(Player * plr = objmgr.GetPlayer(*itr)) 325 plr->RemoveAurasDueToSpell(HordeBuff);325 if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(HordeBuff); 326 326 } 327 327 } … … 331 331 { 332 332 if(Player * plr = objmgr.GetPlayer(*itr)) 333 plr->CastSpell(plr,HordeBuff,true);333 if(plr->IsInWorld()) plr->CastSpell(plr,HordeBuff,true); 334 334 } 335 335 for(std::set<uint64>::iterator itr = m_PlayerGuids[0].begin(); itr != m_PlayerGuids[0].end(); ++itr) 336 336 { 337 337 if(Player * plr = objmgr.GetPlayer(*itr)) 338 plr->RemoveAurasDueToSpell(AllianceBuff);338 if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(AllianceBuff); 339 339 } 340 340 } … … 344 344 { 345 345 if(Player * plr = objmgr.GetPlayer(*itr)) 346 plr->RemoveAurasDueToSpell(AllianceBuff);346 if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(AllianceBuff); 347 347 } 348 348 for(std::set<uint64>::iterator itr = m_PlayerGuids[1].begin(); itr != m_PlayerGuids[1].end(); ++itr) 349 349 { 350 350 if(Player * plr = objmgr.GetPlayer(*itr)) 351 plr->RemoveAurasDueToSpell(HordeBuff);351 if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(HordeBuff); 352 352 } 353 353 }