Changeset 79 for trunk/src/game/Level2.cpp
- Timestamp:
- 11/19/08 13:32:21 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Level2.cpp
r44 r79 97 97 { 98 98 account_id = objmgr.GetPlayerAccountIdByGUID(guid); 99 security = objmgr.GetSecurityByAccount(account_id);99 security = accmgr.GetSecurity(account_id); 100 100 } 101 101 … … 163 163 { 164 164 account_id = objmgr.GetPlayerAccountIdByGUID(guid); 165 security = objmgr.GetSecurityByAccount(account_id);165 security = accmgr.GetSecurity(account_id); 166 166 } 167 167 … … 1450 1450 type_str = guid_str; 1451 1451 pCreature = getSelectedCreature(); 1452 if(!pCreature )1452 if(!pCreature || pCreature->isPet()) 1453 1453 return false; 1454 1454 lowguid = pCreature->GetDBTableGUIDLow(); … … 1596 1596 Creature *pCreature = getSelectedCreature(); 1597 1597 1598 if(!pCreature )1598 if(!pCreature || pCreature->isPet()) 1599 1599 { 1600 1600 SendSysMessage(LANG_SELECT_CREATURE); … … 2213 2213 // -> Player must have selected a creature 2214 2214 2215 if(!target )2215 if(!target || target->isPet()) 2216 2216 { 2217 2217 SendSysMessage(LANG_SELECT_CREATURE); … … 2297 2297 2298 2298 target = ObjectAccessor::GetCreature(*m_session->GetPlayer(),MAKE_NEW_GUID(lowguid,data->id,HIGHGUID_UNIT)); 2299 if(!target )2299 if(!target || target->isPet()) 2300 2300 { 2301 2301 PSendSysMessage(LANG_WAYPOINT_CREATNOTFOUND, lowguid);