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

[svn] *** Source: MaNGOS ***
* Implement localization of creature/gameobject name that say/yell. Author: evilstar (rewrited by: Vladimir)
* Fix auth login queue. Author: Derex
* Allowed switching INVTYPE_HOLDABLE items during combat, used correct spells for triggering global cooldown at weapon switch. Author: mobel/simak
* Fixed some format arg type/value pairs. Other warnings. Author: Vladimir
* [238_world.sql] Allow have team dependent graveyards at entrance map for instances. Author: Vladimir

NOTE:
Entrance map graveyards selected by same way as local (by distance from entrance) Until DB support will work in old way base at current DB data.

Original author: visagalis
Date: 2008-11-14 17:03:03-06:00

Files:
1 modified

Legend:

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

    r229 r230  
    1025710257                if(pProto && isInCombat()&& pProto->Class == ITEM_CLASS_WEAPON && m_weaponChangeTimer == 0) 
    1025810258                { 
    10259                     m_weaponChangeTimer = DEFAULT_SWITCH_WEAPON; 
     10259                    uint32 cooldownSpell = SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_5s; 
     10260 
    1026010261                    if (getClass() == CLASS_ROGUE) 
    10261                         m_weaponChangeTimer = ROGUE_SWITCH_WEAPON; 
     10262                        cooldownSpell = SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_0s; 
     10263 
     10264                    SpellEntry const* spellProto = sSpellStore.LookupEntry(cooldownSpell); 
     10265 
     10266                    if (!spellProto) 
     10267                        sLog.outError("Weapon switch cooldown spell %u couldn't be found in Spell.dbc", cooldownSpell); 
     10268                    else 
     10269                    { 
     10270                        m_weaponChangeTimer = spellProto->StartRecoveryTime; 
     10271 
     10272                        WorldPacket data(SMSG_SPELL_COOLDOWN, 8+1+4); 
     10273                        data << uint64(GetGUID()); 
     10274                        data << uint8(1); 
     10275                        data << uint32(cooldownSpell); 
     10276                        data << uint32(0); 
     10277                        GetSession()->SendPacket(&data); 
     10278                    } 
    1026210279                } 
    1026310280            }