Show
Ignore:
Timestamp:
11/19/08 13:32:21 (17 years ago)
Author:
yumileroy
Message:

[svn] * Minor code fixes
* Move account related functions from ObjectMgr? to AccountMgr? and drop duplicate functions - source mangos
* recognize the dummy spells 38637, 38638 and 38639 as negative - source mangos
* added new command ".reload all_locales". Now all locales_* tables can be reloaded - source mangos

Original author: KingPin?
Date: 2008-10-20 12:59:45-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Level2.cpp

    r44 r79  
    9797    { 
    9898        account_id = objmgr.GetPlayerAccountIdByGUID(guid); 
    99         security = objmgr.GetSecurityByAccount(account_id); 
     99        security = accmgr.GetSecurity(account_id); 
    100100    } 
    101101 
     
    163163    { 
    164164        account_id = objmgr.GetPlayerAccountIdByGUID(guid); 
    165         security = objmgr.GetSecurityByAccount(account_id); 
     165        security = accmgr.GetSecurity(account_id); 
    166166    } 
    167167 
     
    14501450        type_str = guid_str; 
    14511451        pCreature = getSelectedCreature(); 
    1452         if(!pCreature) 
     1452        if(!pCreature || pCreature->isPet()) 
    14531453            return false; 
    14541454        lowguid = pCreature->GetDBTableGUIDLow(); 
     
    15961596    Creature *pCreature = getSelectedCreature(); 
    15971597 
    1598     if(!pCreature) 
     1598    if(!pCreature || pCreature->isPet()) 
    15991599    { 
    16001600        SendSysMessage(LANG_SELECT_CREATURE); 
     
    22132213        // -> Player must have selected a creature 
    22142214 
    2215         if(!target) 
     2215        if(!target || target->isPet()) 
    22162216        { 
    22172217            SendSysMessage(LANG_SELECT_CREATURE); 
     
    22972297 
    22982298        target = ObjectAccessor::GetCreature(*m_session->GetPlayer(),MAKE_NEW_GUID(lowguid,data->id,HIGHGUID_UNIT)); 
    2299         if(!target) 
     2299        if(!target || target->isPet()) 
    23002300        { 
    23012301            PSendSysMessage(LANG_WAYPOINT_CREATNOTFOUND, lowguid);