Changeset 80 for trunk/src/game/OutdoorPvPSI.cpp
- Timestamp:
- 11/19/08 13:32:28 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/OutdoorPvPSI.cpp
r44 r80 71 71 { 72 72 if(Player * plr = objmgr.GetPlayer(*itr)) 73 plr->CastSpell(plr,SI_CENARION_FAVOR,true);73 if(plr->IsInWorld()) plr->CastSpell(plr,SI_CENARION_FAVOR,true); 74 74 } 75 75 for(std::set<uint64>::iterator itr = m_PlayerGuids[1].begin(); itr != m_PlayerGuids[1].end(); ++itr) 76 76 { 77 77 if(Player * plr = objmgr.GetPlayer(*itr)) 78 plr->RemoveAurasDueToSpell(SI_CENARION_FAVOR);78 if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(SI_CENARION_FAVOR); 79 79 } 80 80 } … … 84 84 { 85 85 if(Player * plr = objmgr.GetPlayer(*itr)) 86 plr->CastSpell(plr,SI_CENARION_FAVOR,true);86 if(plr->IsInWorld()) plr->CastSpell(plr,SI_CENARION_FAVOR,true); 87 87 } 88 88 for(std::set<uint64>::iterator itr = m_PlayerGuids[0].begin(); itr != m_PlayerGuids[0].end(); ++itr) 89 89 { 90 90 if(Player * plr = objmgr.GetPlayer(*itr)) 91 plr->RemoveAurasDueToSpell(SI_CENARION_FAVOR);91 if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(SI_CENARION_FAVOR); 92 92 } 93 93 } … … 97 97 { 98 98 if(Player * plr = objmgr.GetPlayer(*itr)) 99 plr->RemoveAurasDueToSpell(SI_CENARION_FAVOR);99 if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(SI_CENARION_FAVOR); 100 100 } 101 101 for(std::set<uint64>::iterator itr = m_PlayerGuids[1].begin(); itr != m_PlayerGuids[1].end(); ++itr) 102 102 { 103 103 if(Player * plr = objmgr.GetPlayer(*itr)) 104 plr->RemoveAurasDueToSpell(SI_CENARION_FAVOR);104 if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(SI_CENARION_FAVOR); 105 105 } 106 106 }