Changeset 229

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

[svn] *** Source: MaNGOS ***
* Fixed build extractor at Windows Vista. Author: Vladimir
* Fixed comment text and code indentifiers spelling. Author: Vladimir & Paradox.
* Access cached member lists in guild handlers instead of querying the DB. Author: Hunuza
* Small fixes in send/received packet and simple code cleanup also. Author: Vladimir
* Not output error at loading empty character_ticket table. Author: Vladimir
* Not reset display model at shapeshift aura remove if it not set at apply. Author: Arthorius
* Applied props to few files.

Original author: visagalis
Date: 2008-11-14 16:28:45-06:00

Location:
trunk
Files:
77 modified

Legend:

Unmodified
Added
Removed
  • trunk/contrib/extractor/VC71_ad.vcproj

    r2 r229  
    5353                                RuntimeLibrary="1" 
    5454                                UsePrecompiledHeader="0" 
    55                                 PrecompiledHeaderFile="c:\windows\temp/ad.pch" 
    56                                 AssemblerListingLocation="c:\windows\temp/" 
    57                                 ObjectFile="c:\windows\temp/" 
    58                                 ProgramDataBaseFileName="c:\windows\temp/" 
     55                                PrecompiledHeaderFile="$(IntDir)ad.pch" 
     56                                AssemblerListingLocation="$(IntDir)\" 
     57                                ObjectFile="$(IntDir)\" 
     58                                ProgramDataBaseFileName="$(IntDir)\" 
    5959                                BrowseInformation="1" 
    6060                                WarningLevel="3" 
     
    150150                                RuntimeLibrary="0" 
    151151                                UsePrecompiledHeader="0" 
    152                                 PrecompiledHeaderFile="c:\windows\temp/ad.pch" 
    153                                 AssemblerListingLocation="c:\windows\temp/" 
    154                                 ObjectFile="c:\windows\temp/" 
    155                                 ProgramDataBaseFileName="c:\windows\temp/" 
     152                                PrecompiledHeaderFile="$(IntDir)ad.pch" 
     153                                AssemblerListingLocation="$(IntDir)\" 
     154                                ObjectFile="$(IntDir)\" 
     155                                ProgramDataBaseFileName="$(IntDir)\" 
    156156                                WarningLevel="3" 
    157157                                SuppressStartupBanner="true" 
  • trunk/contrib/extractor/VC80_ad.vcproj

    r2 r229  
    5555                                RuntimeLibrary="1" 
    5656                                UsePrecompiledHeader="0" 
    57                                 PrecompiledHeaderFile="c:\windows\temp/ad.pch" 
    58                                 AssemblerListingLocation="c:\windows\temp/" 
    59                                 ObjectFile="c:\windows\temp/" 
    60                                 ProgramDataBaseFileName="c:\windows\temp/" 
     57                                PrecompiledHeaderFile="$(IntDir)ad.pch" 
     58                                AssemblerListingLocation="$(IntDir)\" 
     59                                ObjectFile="$(IntDir)\" 
     60                                ProgramDataBaseFileName="$(IntDir)\" 
     61                                XMLDocumentationFileName="$(IntDir)\" 
    6162                                BrowseInformation="1" 
    6263                                WarningLevel="3" 
     
    8182                                LinkIncremental="1" 
    8283                                SuppressStartupBanner="true" 
    83                                 AdditionalLibraryDirectories="./debug/" 
     84                                AdditionalLibraryDirectories="./debug" 
    8485                                IgnoreDefaultLibraryNames="LIBCD.lib" 
    8586                                GenerateDebugInformation="true" 
     
    154155                                UsePrecompiledHeader="0" 
    155156                                PrecompiledHeaderFile="c:\windows\temp/ad.pch" 
    156                                 AssemblerListingLocation="c:\windows\temp/" 
    157                                 ObjectFile="c:\windows\temp/" 
    158                                 ProgramDataBaseFileName="c:\windows\temp/" 
     157                                AssemblerListingLocation="$(IntDir)\" 
     158                                ObjectFile="$(IntDir)\" 
     159                                ProgramDataBaseFileName="$(IntDir)\" 
     160                                XMLDocumentationFileName="$(IntDir)\" 
    159161                                WarningLevel="3" 
    160162                                SuppressStartupBanner="true" 
     
    177179                                LinkIncremental="1" 
    178180                                SuppressStartupBanner="true" 
    179                                 AdditionalLibraryDirectories="./release/" 
     181                                AdditionalLibraryDirectories="./release" 
    180182                                IgnoreDefaultLibraryNames="LIBC.lib" 
    181183                                ProgramDatabaseFile="./ad.pdb" 
  • trunk/contrib/extractor/VC90_ad.vcproj

    r2 r229  
    55        Name="ad" 
    66        ProjectGUID="{D7552D4F-408F-4F8E-859B-366659150CF4}" 
     7        RootNamespace="ad" 
    78        TargetFrameworkVersion="131072" 
    89        > 
     
    5455                                RuntimeLibrary="1" 
    5556                                UsePrecompiledHeader="0" 
    56                                 PrecompiledHeaderFile="c:\windows\temp/ad.pch" 
    57                                 AssemblerListingLocation="c:\windows\temp/" 
    58                                 ObjectFile="c:\windows\temp/" 
    59                                 ProgramDataBaseFileName="c:\windows\temp/" 
     57                                PrecompiledHeaderFile="$(IntDir)ad.pch" 
     58                                AssemblerListingLocation="$(IntDir)\" 
     59                                ObjectFile="$(IntDir)\" 
     60                                ProgramDataBaseFileName="$(IntDir)\" 
     61                                XMLDocumentationFileName="$(IntDir)\" 
    6062                                BrowseInformation="1" 
     63                                BrowseInformationFile="$(IntDir)" 
    6164                                WarningLevel="3" 
    6265                                SuppressStartupBanner="true" 
     
    150153                                RuntimeLibrary="0" 
    151154                                UsePrecompiledHeader="0" 
    152                                 PrecompiledHeaderFile="c:\windows\temp/ad.pch" 
    153                                 AssemblerListingLocation="c:\windows\temp/" 
    154                                 ObjectFile="c:\windows\temp/" 
    155                                 ProgramDataBaseFileName="c:\windows\temp/" 
     155                                PrecompiledHeaderFile="$(IntDir)ad.pch" 
     156                                AssemblerListingLocation="$(IntDir)\" 
     157                                ObjectFile="$(IntDir)\" 
     158                                ProgramDataBaseFileName="$(IntDir)\" 
     159                                XMLDocumentationFileName="$(IntDir)\" 
    156160                                WarningLevel="3" 
    157161                                SuppressStartupBanner="true" 
  • trunk/src/bindings/scripts/include/sc_creature.cpp

    r203 r229  
    7474void ScriptedAI::MoveInLineOfSight(Unit *who) 
    7575{ 
    76     if(m_creature->getVictim() || !m_creature->IsHostileTo(who) || !who->isInAccessablePlaceFor(m_creature)) 
     76    if(m_creature->getVictim() || !m_creature->IsHostileTo(who) || !who->isInAccessiblePlaceFor(m_creature)) 
    7777        return; 
    7878 
     
    787787void Scripted_NoMovementAI::MoveInLineOfSight(Unit *who) 
    788788{ 
    789     if( !m_creature->getVictim() && m_creature->canAttack(who) && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     789    if( !m_creature->getVictim() && m_creature->canAttack(who) && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    790790    { 
    791791        if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/creature/mob_event_ai.cpp

    r206 r229  
    11961196            return; 
    11971197 
    1198         if (m_creature->canAttack(who) && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     1198        if (m_creature->canAttack(who) && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    11991199        { 
    12001200            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/npc/npc_escortAI.cpp

    r174 r229  
    6161        return; 
    6262 
    63     if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     63    if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    6464    { 
    6565        if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/aunchindoun/auchenai_crypts/boss_exarch_maladaar.cpp

    r223 r229  
    173173    void MoveInLineOfSight(Unit *who) 
    174174    { 
    175         if (!m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature)) 
     175        if (!m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature)) 
    176176        { 
    177177            if (!HasTaunted && m_creature->IsWithinDistInMap(who, 150.0)) 
  • trunk/src/bindings/scripts/scripts/zone/aunchindoun/mana_tombs/boss_nexusprince_shaffar.cpp

    r115 r229  
    7979    void MoveInLineOfSight(Unit *who) 
    8080    { 
    81         if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     81        if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    8282        { 
    8383            if( !HasTaunted && m_creature->IsWithinDistInMap(who, 100.0) ) 
  • trunk/src/bindings/scripts/scripts/zone/aunchindoun/sethekk_halls/boss_tailonking_ikiss.cpp

    r115 r229  
    8989    void MoveInLineOfSight(Unit *who) 
    9090    { 
    91         if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     91        if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    9292        { 
    9393            if(!Intro && m_creature->IsWithinDistInMap(who, 100)) 
  • trunk/src/bindings/scripts/scripts/zone/aunchindoun/shadow_labyrinth/boss_grandmaster_vorpil.cpp

    r115 r229  
    179179            return; 
    180180 
    181         if (who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     181        if (who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    182182        { 
    183183            float attackRadius = m_creature->GetAttackDistance(who); 
  • trunk/src/bindings/scripts/scripts/zone/black_temple/boss_reliquary_of_souls.cpp

    r178 r229  
    190190    void MoveInLineOfSight(Unit *who) 
    191191    { 
    192         if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     192        if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    193193        { 
    194194            if (m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/black_temple/boss_teron_gorefiend.cpp

    r90 r229  
    163163            return; 
    164164 
    165         if(who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     165        if(who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    166166        { 
    167167            float attackRadius = m_creature->GetAttackDistance(who); 
     
    277277        if(!who || (!who->isAlive())) return; 
    278278 
    279         if(who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     279        if(who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    280280        { 
    281281            float attackRadius = m_creature->GetAttackDistance(who); 
  • trunk/src/bindings/scripts/scripts/zone/blades_edge_mountains/blades_edge_mountains.cpp

    r109 r229  
    287287        } 
    288288 
    289         if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     289        if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    290290        { 
    291291            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/burning_steppes/burning_steppes.cpp

    r109 r229  
    4242        if( who->HasAura(16468,0) ) 
    4343        { 
    44             if( who->GetTypeId() == TYPEID_PLAYER && m_creature->IsWithinDistInMap(who, 15) && who->isInAccessablePlaceFor(m_creature) ) 
     44            if( who->GetTypeId() == TYPEID_PLAYER && m_creature->IsWithinDistInMap(who, 15) && who->isInAccessiblePlaceFor(m_creature) ) 
    4545            { 
    4646                DoCast(who,16472); 
     
    4949        } 
    5050 
    51         if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     51        if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    5252        { 
    5353            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_temporus.cpp

    r125 r229  
    8989        } 
    9090 
    91         if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     91        if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    9292        { 
    9393            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp

    r187 r229  
    279279            return; 
    280280 
    281         if (who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     281        if (who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    282282        { 
    283283            float attackRadius = m_creature->GetAttackDistance(who); 
  • trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp

    r182 r229  
    237237                        return; 
    238238 
    239                 if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     239                if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    240240                { 
    241241                        if (m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp

    r187 r229  
    122122                if (!who || m_creature->getVictim()) return; 
    123123 
    124                 if (who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     124                if (who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    125125        { 
    126126                        AttackStart(who); 
  • trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp

    r164 r229  
    304304            return; 
    305305 
    306         if (who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     306        if (who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    307307        { 
    308308            //no attack radius check - it attacks the first target that moves in his los 
  • trunk/src/bindings/scripts/scripts/zone/gruuls_lair/boss_high_king_maulgar.cpp

    r109 r229  
    453453    void MoveInLineOfSight(Unit *who) 
    454454    { 
    455         if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     455        if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    456456        { 
    457457            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
     
    583583    void MoveInLineOfSight(Unit *who) 
    584584    { 
    585         if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     585        if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    586586        { 
    587587            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
     
    697697    void MoveInLineOfSight(Unit *who) 
    698698    { 
    699         if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     699        if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    700700        { 
    701701            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/hellfire_citadel/hellfire_ramparts/boss_watchkeeper_gargolmar.cpp

    r166 r229  
    7878    void MoveInLineOfSight(Unit* who) 
    7979    { 
    80         if (!m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     80        if (!m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    8181        { 
    8282            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/hellfire_citadel/shattered_halls/boss_nethekurse.cpp

    r166 r229  
    187187    void MoveInLineOfSight(Unit *who) 
    188188    { 
    189         if (!m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     189        if (!m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    190190        { 
    191191            if (!IntroOnce && m_creature->IsWithinDistInMap(who, 75)) 
  • trunk/src/bindings/scripts/scripts/zone/naxxramas/boss_anubrekhan.cpp

    r109 r229  
    100100    void MoveInLineOfSight(Unit *who) 
    101101    { 
    102         if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     102        if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    103103        { 
    104104            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/naxxramas/boss_faerlina.cpp

    r109 r229  
    9090    void MoveInLineOfSight(Unit *who) 
    9191    { 
    92         if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     92        if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    9393        { 
    9494            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/stratholme/boss_timmy_the_cruel.cpp

    r109 r229  
    5050            return; 
    5151 
    52         if (who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     52        if (who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    5353        { 
    5454            float attackRadius = m_creature->GetAttackDistance(who); 
  • trunk/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp

    r158 r229  
    422422            return; 
    423423 
    424         if (who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     424        if (who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    425425        { 
    426426 
  • trunk/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/arcatraz.cpp

    r109 r229  
    350350            return; 
    351351 
    352         if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     352        if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    353353        { 
    354354            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/boss_harbinger_skyriss.cpp

    r109 r229  
    118118            return; 
    119119 
    120         if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     120        if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    121121        { 
    122122            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_kaelthas.cpp

    r204 r229  
    203203            return; 
    204204 
    205         if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessablePlaceFor(m_creature) ) 
     205        if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) ) 
    206206        { 
    207207            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
     
    496496    void MoveInLineOfSight(Unit *who) 
    497497    { 
    498         if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     498        if (!m_creature->getVictim() && who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    499499        { 
    500500            if (!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) 
  • trunk/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_twinemperors.cpp

    r90 r229  
    346346            return; 
    347347 
    348         if (who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
     348        if (who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who)) 
    349349        { 
    350350            float attackRadius = m_creature->GetAttackDistance(who); 
  • trunk/src/game/AggressorAI.cpp

    r186 r229  
    5252    if( !i_creature.getVictim() && !i_creature.hasUnitState(UNIT_STAT_STUNNED) && i_creature.canAttack(u) && 
    5353        ( i_creature.IsHostileTo( u ) /*|| u->getVictim() && i_creature.IsFriendlyTo( u->getVictim() )*/ ) && 
    54         u->isInAccessablePlaceFor(&i_creature) ) 
     54        u->isInAccessiblePlaceFor(&i_creature) ) 
    5555    { 
    5656        float attackRadius = i_creature.GetAttackDistance(u); 
  • trunk/src/game/AuctionHouse.cpp

    r102 r229  
    179179} 
    180180 
    181 //this function sends mail, when auction is cancelled to old bidder 
     181//this function sends mail, when auction is canceled to old bidder 
    182182void WorldSession::SendAuctionCancelledToBidderMail( AuctionEntry* auction ) 
    183183{ 
     
    246246        return; 
    247247    } 
    248     // prevent sending bag with items (cheat: can be placed in bag after adding equiped empty bag to auction) 
     248    // prevent sending bag with items (cheat: can be placed in bag after adding equipped empty bag to auction) 
    249249    if(!it) 
    250250    { 
  • trunk/src/game/BattleGroundMgr.cpp

    r102 r229  
    628628    bool bAllyOK = BuildSelectionPool(bgTypeId, queue_id, MinPlayersPerTeam, MaxPlayersPerTeam, NORMAL_ALLIANCE, arenatype, isRated, arenaMinRating, arenaMaxRating, discardTime); 
    629629    if(bAllyOK) 
    630         sLog.outDebug("Battleground: ally pool succesfully build"); 
     630        sLog.outDebug("Battleground: ally pool successfully build"); 
    631631    else 
    632632        sLog.outDebug("Battleground: ally pool wasn't created"); 
    633633    bool bHordeOK = BuildSelectionPool(bgTypeId, queue_id, MinPlayersPerTeam, MaxPlayersPerTeam, NORMAL_HORDE, arenatype, isRated, arenaMinRating, arenaMaxRating, discardTime); 
    634634    if(bHordeOK) 
    635         sLog.outDebug("Battleground: horde pool succesfully built"); 
     635        sLog.outDebug("Battleground: horde pool successfully built"); 
    636636    else 
    637637        sLog.outDebug("Battleground: horde pool wasn't created"); 
  • trunk/src/game/Chat.cpp

    r221 r229  
    10251025        return NULL; 
    10261026 
    1027     // skip speces 
     1027    // skip spaces 
    10281028    while(*text==' '||*text=='\t'||*text=='\b') 
    10291029        ++text; 
     
    10731073        return NULL; 
    10741074 
    1075     // skip speces 
     1075    // skip spaces 
    10761076    while(*text==' '||*text=='\t'||*text=='\b') 
    10771077        ++text; 
  • trunk/src/game/Creature.cpp

    r193 r229  
    337337    { 
    338338        case JUST_ALIVED: 
    339             // Dont must be called, see Creature::setDeathState JUST_ALIVED -> ALIVE promoting. 
     339            // Don't must be called, see Creature::setDeathState JUST_ALIVED -> ALIVE promoting. 
    340340            sLog.outError("Creature (GUIDLow: %u Entry: %u ) in wrong state: JUST_ALIVED (4)",GetGUIDLow(),GetEntry()); 
    341341            break; 
    342342        case JUST_DIED: 
    343             // Dont must be called, see Creature::setDeathState JUST_DIED -> CORPSE promoting. 
     343            // Don't must be called, see Creature::setDeathState JUST_DIED -> CORPSE promoting. 
    344344            sLog.outError("Creature (GUIDLow: %u Entry: %u ) in wrong state: JUST_DEAD (1)",GetGUIDLow(),GetEntry()); 
    345345            break; 
     
    507507    uint32 addvalue = 0; 
    508508 
    509     // Not only pet, but any controelled creature 
     509    // Not only pet, but any controlled creature 
    510510    if(GetCharmerOrOwnerGUID()) 
    511511    { 
     
    864864 
    865865    // in case non empty gossip menu (that not included quests list size) show it 
    866     // (quest entries from quest menu wiill be included in list) 
     866    // (quest entries from quest menu will be included in list) 
    867867    player->PlayerTalkClass->SendGossipMenu(GetNpcTextId(), GetGUID()); 
    868868} 
     
    11481148{ 
    11491149    // this should only be used when the creature has already been loaded 
    1150     // perferably after adding to map, because mapid may not be valid otherwise 
     1150    // preferably after adding to map, because mapid may not be valid otherwise 
    11511151    CreatureData const *data = objmgr.GetCreatureData(m_DBTableGuid); 
    11521152    if(!data) 
     
    15571557    float RetDistance = 20; 
    15581558 
    1559     // "Aggro Radius varries with level difference at a rate of roughly 1 yard/level" 
     1559    // "Aggro Radius varies with level difference at a rate of roughly 1 yard/level" 
    15601560    // radius grow if playlevel < creaturelevel 
    15611561    RetDistance -= (float)leveldif; 
     
    15841584 
    15851585        // always save boss respawn time at death to prevent crash cheating 
    1586         if(sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY) || isWorldBoss()) 
     1586        if(sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY) || isWorldBoss()) 
    15871587            SaveRespawnTime(); 
    15881588 
     
    18761876        return true; 
    18771877 
    1878     if(!pVictim->isInAccessablePlaceFor(this)) 
     1878    if(!pVictim->isInAccessiblePlaceFor(this)) 
    18791879        return true; 
    18801880 
     
    18861886    uint32 ThreatRadius = sWorld.getConfig(CONFIG_THREAT_RADIUS); 
    18871887 
    1888     //Use AttackDistance in distance check if threat radius is lower. This prevents creature bounce in and ouf of combat every update tick. 
     1888    //Use AttackDistance in distance check if threat radius is lower. This prevents creature bounce in and out of combat every update tick. 
    18891889    return ( length > (ThreatRadius > AttackDist ? ThreatRadius : AttackDist)); 
    18901890} 
     
    19551955} 
    19561956 
    1957 /// Send a message to LocalDefense channel for players oposition team in the zone 
     1957/// Send a message to LocalDefense channel for players opposition team in the zone 
    19581958void Creature::SendZoneUnderAttackMessage(Player* attacker) 
    19591959{ 
  • trunk/src/game/GMTicketMgr.cpp

    r207 r229  
    4646 
    4747        sLog.outString(); 
    48         sLog.outErrorDb(">> Loaded `character_ticket`, table is empty!"); 
     48        sLog.outString(">> Loaded `character_ticket`, table is empty."); 
    4949        return; 
    5050    } 
  • trunk/src/game/GameObject.cpp

    r203 r229  
    6666    if(m_uint32Values)                                      // field array can be not exist if GameOBject not loaded 
    6767    { 
    68         // crash possable at access to deleted GO in Unit::m_gameobj 
     68        // crash possible at access to deleted GO in Unit::m_gameobj 
    6969        uint64 owner_guid = GetOwnerGUID(); 
    7070        if(owner_guid) 
     
    7474                owner->RemoveGameObject(this,false); 
    7575            else if(!IS_PLAYER_GUID(owner_guid)) 
    76                 sLog.outError("Delete GameObject (GUID: %u Entry: %u ) that have references in not found creature %u GO list. Crash possable later.",GetGUIDLow(),GetGOInfo()->id,GUID_LOPART(owner_guid)); 
     76                sLog.outError("Delete GameObject (GUID: %u Entry: %u ) that have references in not found creature %u GO list. Crash possible later.",GetGUIDLow(),GetGOInfo()->id,GUID_LOPART(owner_guid)); 
    7777        } 
    7878    } 
     
    210210                        } 
    211211 
    212                         m_lootState = GO_READY;                 // can be succesfully open with some chance 
     212                        m_lootState = GO_READY;                 // can be successfully open with some chance 
    213213                    } 
    214214                    return; 
     
    287287                if(!radius) 
    288288                { 
    289                     if(goInfo->trap.cooldown != 3)            // cast in other case (at some triggring/linked go/etc explicit call) 
     289                    if(goInfo->trap.cooldown != 3)            // cast in other case (at some triggering/linked go/etc explicit call) 
    290290                        return; 
    291291                    else 
     
    434434 
    435435            // if option not set then object will be saved at grid unload 
    436             if(sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY)) 
     436            if(sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY)) 
    437437                SaveRespawnTime(); 
    438438 
     
    487487{ 
    488488    // this should only be used when the gameobject has already been loaded 
    489     // perferably after adding to map, because mapid may not be valid otherwise 
     489    // preferably after adding to map, because mapid may not be valid otherwise 
    490490    GameObjectData const *data = objmgr.GetGOData(m_DBTableGuid); 
    491491    if(!data) 
  • trunk/src/game/Group.cpp

    r132 r229  
    14631463        if(bind.save) 
    14641464        { 
    1465             // when a boss is killed or when copying the players's binds to the group 
     1465            // when a boss is killed or when copying the player's binds to the group 
    14661466            if(permanent != bind.perm || save != bind.save) 
    14671467                if(!load) CharacterDatabase.PExecute("UPDATE group_instance SET instance = '%u', permanent = '%u' WHERE leaderGuid = '%u' AND instance = '%u'", save->GetInstanceId(), permanent, GUID_LOPART(GetLeaderGUID()), bind.save->GetInstanceId()); 
  • trunk/src/game/GuardAI.cpp

    r186 r229  
    4646    if( !i_creature.getVictim() && i_creature.canAttack(u) && 
    4747        ( u->IsHostileToPlayers() || i_creature.IsHostileTo(u) /*|| u->getVictim() && i_creature.IsFriendlyTo(u->getVictim())*/ ) && 
    48         u->isInAccessablePlaceFor(&i_creature)) 
     48        u->isInAccessiblePlaceFor(&i_creature)) 
    4949    { 
    5050        float attackRadius = i_creature.GetAttackDistance(u); 
  • trunk/src/game/Guild.cpp

    r173 r229  
    19291929    } 
    19301930 
    1931     // not specific slot or have spece for partly store only in specific slot 
     1931    // not specific slot or have space for partly store only in specific slot 
    19321932 
    19331933    // search stack in tab for merge to 
  • trunk/src/game/Guild.h

    r177 r229  
    331331        { 
    332332            return (members.find(LowGuid) != members.end()); 
     333        } 
     334        MemberSlot* GetMemberSlot(std::string const& name, uint64& guid) 
     335        { 
     336            for(MemberList::iterator itr = members.begin(); itr != members.end(); ++itr) 
     337            { 
     338                if(itr->second.name == name) 
     339                { 
     340                    guid = itr->first; 
     341                    return &itr->second; 
     342                } 
     343            } 
     344            return NULL; 
    333345        } 
    334346 
  • trunk/src/game/GuildHandler.cpp

    r177 r229  
    174174    } 
    175175     
    176     uint64 plGuid = objmgr.GetPlayerGUIDByName(plName); 
    177  
    178     if(!plGuid) 
    179     { 
    180         SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_FOUND); 
    181         return; 
    182     } 
    183  
    184     if(plGuid == guild->GetLeader()) 
     176    uint64 plGuid; 
     177    MemberSlot* slot = guild->GetMemberSlot(plName, plGuid); 
     178    if(!slot) 
     179    { 
     180        SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_IN_GUILD_S); 
     181        return; 
     182    } 
     183 
     184    if(slot->RankId == GR_GUILDMASTER) 
    185185    { 
    186186        SendGuildCommandResult(GUILD_QUIT_S, "", GUILD_LEADER_LEAVE); 
    187         return; 
    188     } 
    189  
    190     if(!guild->IsMember(GUID_LOPART(plGuid))) 
    191     { 
    192         SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_IN_GUILD_S); 
    193187        return; 
    194188    } 
     
    302296    } 
    303297     
    304     uint64 plGuid = objmgr.GetPlayerGUIDByName(plName); 
     298    uint64 plGuid; 
     299    MemberSlot* slot = guild->GetMemberSlot(plName, plGuid); 
     300 
     301    if(!slot) 
     302    { 
     303        SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_IN_GUILD_S); 
     304        return; 
     305    } 
     306 
     307    if(plGuid == GetPlayer()->GetGUID()) 
     308    { 
     309        SendGuildCommandResult(GUILD_INVITE_S, "", GUILD_NAME_INVALID); 
     310        return; 
     311    } 
    305312     
    306     if(!plGuid) 
    307     { 
    308         SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_FOUND); 
    309         return; 
    310     } 
    311     else if(plGuid == GetPlayer()->GetGUID()) 
    312     { 
    313         SendGuildCommandResult(GUILD_INVITE_S, "", GUILD_NAME_INVALID); 
    314         return; 
    315     } 
    316      
    317     int32 plRankId = guild->GetRank(GUID_LOPART(plGuid)); 
    318     if(plRankId == -1) 
    319     { 
    320         SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_IN_GUILD_S); 
    321         return; 
    322     } 
    323     if(plRankId < 2 || (plRankId-1) < GetPlayer()->GetRank()) 
    324         return; 
    325  
    326     uint32 newRankId = plRankId < guild->GetNrRanks() ? plRankId-1 : guild->GetNrRanks()-1; 
     313    if(slot->RankId < 2 || (slot->RankId-1) < GetPlayer()->GetRank()) 
     314        return; 
     315 
     316    uint32 newRankId = slot->RankId < guild->GetNrRanks() ? slot->RankId-1 : guild->GetNrRanks()-1; 
    327317 
    328318    guild->ChangeRank(plGuid, newRankId); 
     
    366356    } 
    367357     
    368     uint64 plGuid = objmgr.GetPlayerGUIDByName(plName); 
    369  
    370     if( !plGuid ) 
    371     { 
    372         SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_FOUND); 
     358    uint64 plGuid; 
     359    MemberSlot* slot = guild->GetMemberSlot(plName, plGuid); 
     360 
     361    if (!slot) 
     362    { 
     363        SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_IN_GUILD_S); 
    373364        return; 
    374365    } 
     
    380371    } 
    381372 
    382     int32 plRankId = guild->GetRank(GUID_LOPART(plGuid)); 
    383     if(plRankId == -1) 
    384     { 
    385         SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_IN_GUILD_S); 
    386         return; 
    387     } 
    388  
    389     if((plRankId+1) >= guild->GetNrRanks() || plRankId <= this->GetPlayer()->GetRank()) 
    390         return; 
    391  
    392     guild->ChangeRank(plGuid, (plRankId+1)); 
     373    if((slot->RankId+1) >= guild->GetNrRanks() || slot->RankId <= GetPlayer()->GetRank()) 
     374        return; 
     375 
     376    guild->ChangeRank(plGuid, (slot->RankId+1)); 
    393377    // Put record into guildlog 
    394     guild->LogGuildEvent(GUILD_EVENT_LOG_DEMOTE_PLAYER, GetPlayer()->GetGUIDLow(), GUID_LOPART(plGuid), (plRankId+1)); 
     378    guild->LogGuildEvent(GUILD_EVENT_LOG_DEMOTE_PLAYER, GetPlayer()->GetGUIDLow(), GUID_LOPART(plGuid), (slot->RankId+1)); 
    395379 
    396380    WorldPacket data(SMSG_GUILD_EVENT, (2+30));             // guess size 
     
    399383    data << GetPlayer()->GetName(); 
    400384    data << plName; 
    401     data << guild->GetRankName(plRankId+1); 
     385    data << guild->GetRankName(slot->RankId+1); 
    402386    guild->BroadcastPacket(&data); 
    403387} 
     
    498482    } 
    499483 
    500     uint64 newLeaderGUID = objmgr.GetPlayerGUIDByName(name); 
    501     if (!newLeaderGUID) 
    502     { 
    503         SendGuildCommandResult(GUILD_INVITE_S, name, GUILD_PLAYER_NOT_FOUND); 
    504         return; 
    505     } 
    506     if(!guild->IsMember(GUID_LOPART(newLeaderGUID))) 
     484    uint64 newLeaderGUID; 
     485    MemberSlot* slot = guild->GetMemberSlot(name, newLeaderGUID); 
     486 
     487    if (!slot) 
    507488    { 
    508489        SendGuildCommandResult(GUILD_INVITE_S, name, GUILD_PLAYER_NOT_IN_GUILD_S); 
     
    584565    } 
    585566     
    586     uint64 plGuid = objmgr.GetPlayerGUIDByName(name); 
    587  
    588     if (!plGuid) 
    589     { 
    590         SendGuildCommandResult(GUILD_INVITE_S, name, GUILD_PLAYER_NOT_FOUND); 
    591         return; 
    592     } 
    593      
    594     if (!guild->IsMember(GUID_LOPART(plGuid))) 
     567    uint64 plGuid; 
     568    MemberSlot* slot = guild->GetMemberSlot(name, plGuid); 
     569 
     570    if (!slot) 
    595571    { 
    596572        SendGuildCommandResult(GUILD_INVITE_S, name, GUILD_PLAYER_NOT_IN_GUILD_S); 
     
    629605    } 
    630606     
    631     uint64 plGuid = objmgr.GetPlayerGUIDByName(plName); 
    632  
    633     if (!plGuid) 
    634     { 
    635         SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_FOUND); 
    636         return; 
    637     } 
     607    uint64 plGuid; 
     608    MemberSlot* slot = guild->GetMemberSlot(plName, plGuid); 
    638609     
    639     if (!guild->IsMember(GUID_LOPART(plGuid))) 
     610    if (!slot) 
    640611    { 
    641612        SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_IN_GUILD_S); 
  • trunk/src/game/ItemHandler.cpp

    r207 r229  
    556556        else 
    557557        { 
    558             // prevent sell more items that exist in stack (possable only not from client) 
     558            // prevent sell more items that exist in stack (possible only not from client) 
    559559            if(count > pItem->GetCount()) 
    560560            { 
     
    10281028    } 
    10291029 
    1030     if(item==gift)                                          // not possable with pacjket from real client 
     1030    if(item==gift)                                          // not possible with pacjket from real client 
    10311031    { 
    10321032        _player->SendEquipError( EQUIP_ERR_WRAPPED_CANT_BE_WRAPPED, item, NULL ); 
  • trunk/src/game/ItemPrototype.h

    r102 r229  
    7979    NO_BIND                                     = 0, 
    8080    BIND_WHEN_PICKED_UP                         = 1, 
    81     BIND_WHEN_EQUIPED                           = 2, 
     81    BIND_WHEN_EQUIPPED                           = 2, 
    8282    BIND_WHEN_USE                               = 3, 
    8383    BIND_QUEST_ITEM                             = 4, 
  • trunk/src/game/LFGHandler.cpp

    r102 r229  
    113113            { 
    114114                delete group; 
    115                 return;                                     // cann't create group (??) 
     115                return;                                     // can't create group (??) 
    116116            } 
    117117 
     
    255255    uint32 number = 0; 
    256256 
    257     // start preper packet; 
     257    // start prepare packet; 
    258258    WorldPacket data(MSG_LOOKING_FOR_GROUP); 
    259259    data << uint32(type);                                   // type 
  • trunk/src/game/Level3.cpp

    r209 r229  
    5353#include "InstanceSaveMgr.h" 
    5454#include "InstanceData.h" 
    55 #include "AccountMgr.h" 
    5655 
    5756//reload commands 
  • trunk/src/game/LootMgr.cpp

    r102 r229  
    535535    // all players will get notified of it being removed 
    536536    // (other questitems can be looted by each group member) 
    537     // bit inefficient but isnt called often 
     537    // bit inefficient but isn't called often 
    538538 
    539539    std::set<uint64>::iterator i_next; 
  • trunk/src/game/Mail.cpp

    r149 r229  
    376376    } 
    377377 
    378     // preper mail and send in other case 
     378    // prepare mail and send in other case 
    379379    bool needItemDelay = false; 
    380380 
     
    468468                sender_accId = objmgr.GetPlayerAccountIdByGUID(sender_guid); 
    469469 
    470             // check player existanse 
     470            // check player existence 
    471471            if(receive || sender_accId) 
    472472            { 
  • trunk/src/game/Map.cpp

    r221 r229  
    678678    { 
    679679        // if option set then object already saved at this moment 
    680         if(!sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY)) 
     680        if(!sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY)) 
    681681            obj->SaveRespawnTime(); 
    682682        DeleteFromWorld(obj); 
  • trunk/src/game/MiscHandler.cpp

    r209 r229  
    259259        data << uint32( pzoneid );                          // player zone id 
    260260 
    261         // 49 is maximum player count sent to client - can be overriden 
     261        // 49 is maximum player count sent to client - can be overridden 
    262262        // through config, but is unstable 
    263263        if ((++clientcount) == sWorld.getConfig(CONFIG_MAX_WHO)) 
     
    12811281    } 
    12821282 
     1283    normalizePlayerName (charname); 
     1284 
    12831285    Player *plr = objmgr.GetPlayer(charname.c_str()); 
    12841286 
  • trunk/src/game/MovementHandler.cpp

    r189 r229  
    141141        _player->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED); 
    142142 
    143     // battleground state preper 
     143    // battleground state prepare 
    144144    // only add to bg group and object, if the player was invited (else he entered through command) 
    145145    if(_player->InBattleGround() && _player->IsInvitedForBattleGroundInstance(_player->GetBattleGroundId())) 
  • trunk/src/game/ObjectGridLoader.cpp

    r102 r229  
    256256        T *obj = m.getFirst()->getSource(); 
    257257        // if option set then object already saved at this moment 
    258         if(!sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY)) 
     258        if(!sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY)) 
    259259            obj->SaveRespawnTime(); 
    260260        ///- object must be out of world before delete 
     
    277277        Creature *obj = m.getFirst()->getSource(); 
    278278        // if option set then object already saved at this moment 
    279         if(!sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY)) 
     279        if(!sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY)) 
    280280            obj->SaveRespawnTime(); 
    281281        ///- object will get delinked from the manager when deleted 
  • trunk/src/game/ObjectMgr.cpp

    r207 r229  
    893893    } 
    894894 
    895     // replace by new strucutres array 
     895    // replace by new structures array 
    896896    const_cast<CreatureDataAddonAura*&>(addon->auras) = new CreatureDataAddonAura[val.size()/2+1]; 
    897897 
     
    31333133                sLog.outErrorDb("Quest %u has `SrcItemId` = %u but `SrcItemCount` = 0, set to 1 but need fix in DB.", 
    31343134                    qinfo->GetQuestId(),qinfo->SrcItemId); 
    3135                 qinfo->SrcItemCount = 1;                    // update to 1 for allow quest work for backward comptibility with DB 
     3135                qinfo->SrcItemCount = 1;                    // update to 1 for allow quest work for backward compatibility with DB 
    31363136            } 
    31373137        } 
     
    35363536            Quest const* quest = GetQuestTemplate(quest_id); 
    35373537 
    3538             // some quest referenced in spells not exist (outdataed spells) 
     3538            // some quest referenced in spells not exist (outdated spells) 
    35393539            if(!quest) 
    35403540                continue; 
     
    38963896                    const_cast<Quest*>(quest)->SetFlag(QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT); 
    38973897 
    3898                     // continue; - quest objective requiremet set and command can be allowed 
     3898                    // continue; - quest objective requirement set and command can be allowed 
    38993899                } 
    39003900 
     
    40704070        std::set<uint32>::const_iterator itr2 = evt_scripts.find(itr->first); 
    40714071        if (itr2 == evt_scripts.end()) 
    4072             sLog.outErrorDb("Table `event_scripts` has script (Id: %u) not refering to any gameobject_template type 10 data2 field or type 3 data6 field or any spell effect %u", itr->first, SPELL_EFFECT_SEND_EVENT); 
     4072            sLog.outErrorDb("Table `event_scripts` has script (Id: %u) not referring to any gameobject_template type 10 data2 field or type 3 data6 field or any spell effect %u", itr->first, SPELL_EFFECT_SEND_EVENT); 
    40734073    } 
    40744074} 
     
    42374237        } 
    42384238 
    4239         // the reset_delay must be atleast one day 
     4239        // the reset_delay must be at least one day 
    42404240        temp->reset_delay = std::max((uint32)1, (uint32)(temp->reset_delay * sWorld.getRate(RATE_INSTANCE_RESET_TIME))); 
    42414241    } 
     
    45384538            const_cast<Quest*>(quest)->SetFlag(QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT); 
    45394539 
    4540             // continue; - quest modified to required obkective and trigger can be allowed. 
     4540            // continue; - quest modified to required objective and trigger can be allowed. 
    45414541        } 
    45424542 
     
    48354835 
    48364836        if(!AddGraveYardLink(safeLocId,zoneId,team,false)) 
    4837             sLog.outErrorDb("Table `game_graveyard_zone` has a duplicate record for Garveyard (ID: %u) and Zone (ID: %u), skipped.",safeLocId,zoneId); 
     4837            sLog.outErrorDb("Table `game_graveyard_zone` has a duplicate record for Graveyard (ID: %u) and Zone (ID: %u), skipped.",safeLocId,zoneId); 
    48384838    } while( result->NextRow() ); 
    48394839 
     
    52365236    if(m_auctionid>=0xFFFFFFFF) 
    52375237    { 
    5238         sLog.outError("Auctions ids overflow!! Can't continue, shuting down server. "); 
     5238        sLog.outError("Auctions ids overflow!! Can't continue, shutting down server. "); 
    52395239        sWorld.m_stopEvent = true; 
    52405240    } 
     
    52475247    if(m_mailid>=0xFFFFFFFF) 
    52485248    { 
    5249         sLog.outError("Mail ids overflow!! Can't continue, shuting down server. "); 
     5249        sLog.outError("Mail ids overflow!! Can't continue, shutting down server. "); 
    52505250        sWorld.m_stopEvent = true; 
    52515251    } 
     
    52585258    if(m_ItemTextId>=0xFFFFFFFF) 
    52595259    { 
    5260         sLog.outError("Item text ids overflow!! Can't continue, shuting down server. "); 
     5260        sLog.outError("Item text ids overflow!! Can't continue, shutting down server. "); 
    52615261        sWorld.m_stopEvent = true; 
    52625262    } 
     
    52865286            if(m_hiItemGuid>=0xFFFFFFFF) 
    52875287            { 
    5288                 sLog.outError("Item guid overflow!! Can't continue, shuting down server. "); 
     5288                sLog.outError("Item guid overflow!! Can't continue, shutting down server. "); 
    52895289                sWorld.m_stopEvent = true; 
    52905290            } 
     
    52945294            if(m_hiCreatureGuid>=0x00FFFFFF) 
    52955295            { 
    5296                 sLog.outError("Creature guid overflow!! Can't continue, shuting down server. "); 
     5296                sLog.outError("Creature guid overflow!! Can't continue, shutting down server. "); 
    52975297                sWorld.m_stopEvent = true; 
    52985298            } 
     
    53025302            if(m_hiPetGuid>=0x00FFFFFF) 
    53035303            { 
    5304                 sLog.outError("Pet guid overflow!! Can't continue, shuting down server. "); 
     5304                sLog.outError("Pet guid overflow!! Can't continue, shutting down server. "); 
    53055305                sWorld.m_stopEvent = true; 
    53065306            } 
     
    53105310            if(m_hiCharGuid>=0xFFFFFFFF) 
    53115311            { 
    5312                 sLog.outError("Players guid overflow!! Can't continue, shuting down server. "); 
     5312                sLog.outError("Players guid overflow!! Can't continue, shutting down server. "); 
    53135313                sWorld.m_stopEvent = true; 
    53145314            } 
     
    53185318            if(m_hiGoGuid>=0x00FFFFFF) 
    53195319            { 
    5320                 sLog.outError("Gameobject guid overflow!! Can't continue, shuting down server. "); 
     5320                sLog.outError("Gameobject guid overflow!! Can't continue, shutting down server. "); 
    53215321                sWorld.m_stopEvent = true; 
    53225322            } 
     
    53265326            if(m_hiCorpseGuid>=0xFFFFFFFF) 
    53275327            { 
    5328                 sLog.outError("Corpse guid overflow!! Can't continue, shuting down server. "); 
     5328                sLog.outError("Corpse guid overflow!! Can't continue, shutting down server. "); 
    53295329                sWorld.m_stopEvent = true; 
    53305330            } 
     
    53345334            if(m_hiDoGuid>=0xFFFFFFFF) 
    53355335            { 
    5336                 sLog.outError("DynamicObject guid overflow!! Can't continue, shuting down server. "); 
     5336                sLog.outError("DynamicObject guid overflow!! Can't continue, shutting down server. "); 
    53375337                sWorld.m_stopEvent = true; 
    53385338            } 
     
    61786178    } 
    61796179 
    6180     if(strictMask & 0x1)                                    // basic latin 
     6180    if(strictMask & 0x1)                                    // basic Latin 
    61816181    { 
    61826182        if(isBasicLatinString(wstr,numericOrSpace)) 
     
    65126512void ObjectMgr::LoadFishingBaseSkillLevel() 
    65136513{ 
    6514     mFishingBaseForArea.clear();                            // for relaod case 
     6514    mFishingBaseForArea.clear();                            // for reload case 
    65156515 
    65166516    uint32 count = 0; 
     
    68286828void ObjectMgr::LoadGameTele() 
    68296829{ 
    6830     m_GameTeleMap.clear();                                  // for relaod case 
     6830    m_GameTeleMap.clear();                                  // for reload case 
    68316831 
    68326832    uint32 count = 0; 
  • trunk/src/game/OutdoorPvP.cpp

    r102 r229  
    322322    sLog.outDebug("deleting opvp creature type %u",type); 
    323323    uint32 guid = cr->GetDBTableGUIDLow(); 
    324     // dont save respawn time 
     324    // Don't save respawn time 
    325325    cr->SetRespawnTime(0); 
    326326    cr->RemoveCorpse(); 
     
    380380        { 
    381381            uint32 guid = cr->GetDBTableGUIDLow(); 
    382             // dont save respawn time 
     382            // Don't save respawn time 
    383383            cr->SetRespawnTime(0); 
    384384            cr->RemoveCorpse(); 
  • trunk/src/game/PetAI.cpp

    r191 r229  
    5050        i_pet.GetCharmInfo()->HasReactState(REACT_AGGRESSIVE) && 
    5151        i_pet.IsHostileTo( u ) && i_pet.canAttack(u) && 
    52         u->isInAccessablePlaceFor(&i_pet)) 
     52        u->isInAccessiblePlaceFor(&i_pet)) 
    5353    { 
    5454        float attackRadius = i_pet.GetAttackDistance(u); 
  • trunk/src/game/Player.cpp

    r221 r229  
    798798} 
    799799 
    800 void Player::EnvironmentalDamage(uint64 guid, EnviromentalDamage type, uint32 damage) 
     800void Player::EnvironmentalDamage(uint64 guid, EnvironmentalDamageType type, uint32 damage) 
    801801{ 
    802802    WorldPacket data(SMSG_ENVIRONMENTALDAMAGELOG, (21)); 
     
    15451545        ((Player*)GetCharmer())->RemovePossess(); 
    15461546 
    1547     // The player was ported to another map and looses the duel immediatly. 
     1547    // The player was ported to another map and looses the duel immediately. 
    15481548    // We have to perform this check before the teleport, otherwise the 
    15491549    // ObjectAccessor won't find the flag. 
     
    66916691    } 
    66926692 
    6693     if(!IsUseEquipedWeapon(slot==EQUIPMENT_SLOT_MAINHAND)) 
     6693    if(!IsUseEquippedWeapon(slot==EQUIPMENT_SLOT_MAINHAND)) 
    66946694        return; 
    66956695 
     
    84698469        return item; 
    84708470 
    8471     if( item->IsBroken() || !IsUseEquipedWeapon(attackType==BASE_ATTACK) ) 
     8471    if( item->IsBroken() || !IsUseEquippedWeapon(attackType==BASE_ATTACK) ) 
    84728472        return NULL; 
    84738473 
     
    1013910139        if( pItem->GetProto()->Bonding == BIND_WHEN_PICKED_UP || 
    1014010140            pItem->GetProto()->Bonding == BIND_QUEST_ITEM || 
    10141             pItem->GetProto()->Bonding == BIND_WHEN_EQUIPED && IsBagPos(pos) ) 
     10141            pItem->GetProto()->Bonding == BIND_WHEN_EQUIPPED && IsBagPos(pos) ) 
    1014210142            pItem->SetBinding( true ); 
    1014310143 
     
    1018510185        if( pItem2->GetProto()->Bonding == BIND_WHEN_PICKED_UP || 
    1018610186            pItem2->GetProto()->Bonding == BIND_QUEST_ITEM || 
    10187             pItem2->GetProto()->Bonding == BIND_WHEN_EQUIPED && IsBagPos(pos) ) 
     10187            pItem2->GetProto()->Bonding == BIND_WHEN_EQUIPPED && IsBagPos(pos) ) 
    1018810188            pItem2->SetBinding( true ); 
    1018910189 
     
    1037010370 
    1037110371    // check also  BIND_WHEN_PICKED_UP and BIND_QUEST_ITEM for .additem or .additemset case by GM (not binded at adding to inventory) 
    10372     if( pItem->GetProto()->Bonding == BIND_WHEN_EQUIPED || pItem->GetProto()->Bonding == BIND_WHEN_PICKED_UP || pItem->GetProto()->Bonding == BIND_QUEST_ITEM ) 
     10372    if( pItem->GetProto()->Bonding == BIND_WHEN_EQUIPPED || pItem->GetProto()->Bonding == BIND_WHEN_PICKED_UP || pItem->GetProto()->Bonding == BIND_QUEST_ITEM ) 
    1037310373        pItem->SetBinding( true ); 
    1037410374 
     
    1733217332    if(u->GetVisibility() == VISIBILITY_GROUP_STEALTH) 
    1733317333    { 
    17334         // if player is dead then he can't detect anyone in anycases 
     17334        // if player is dead then he can't detect anyone in any cases 
    1733517335        //do not know what is the use of this detect 
    1733617336        // stealth and detected and visible for some seconds 
  • trunk/src/game/Player.h

    r221 r229  
    786786 
    787787/// Type of environmental damages 
    788 enum EnviromentalDamage 
     788enum EnvironmentalDamageType 
    789789{ 
    790790    DAMAGE_EXHAUSTED = 0, 
     
    11241124        uint32 GetArmorProficiency() const { return m_ArmorProficiency; } 
    11251125        bool IsInFeralForm() const { return m_form == FORM_CAT || m_form == FORM_BEAR || m_form == FORM_DIREBEAR; } 
    1126         bool IsUseEquipedWeapon( bool mainhand ) const 
     1126        bool IsUseEquippedWeapon( bool mainhand ) const 
    11271127        { 
    11281128            // disarm applied only to mainhand weapon 
     
    19341934 
    19351935        /*********************************************************/ 
    1936         /***              ENVIROMENTAL SYSTEM                  ***/ 
    1937         /*********************************************************/ 
    1938  
    1939         void EnvironmentalDamage(uint64 guid, EnviromentalDamage type, uint32 damage); 
     1936        /***              ENVIRONMENTAL SYSTEM                  ***/ 
     1937        /*********************************************************/ 
     1938 
     1939        void EnvironmentalDamage(uint64 guid, EnvironmentalDamageType type, uint32 damage); 
    19401940 
    19411941        /*********************************************************/ 
  • trunk/src/game/SharedDefines.h

    r226 r229  
    200200 
    201201#define SPELL_ATTR_UNK0                           0x00000001            // 0 
    202 #define SPELL_ATTR_RANGED                         0x00000002            // 1 All ranged abilites have this flag 
     202#define SPELL_ATTR_RANGED                         0x00000002            // 1 All ranged abilities have this flag 
    203203#define SPELL_ATTR_ON_NEXT_SWING_1                0x00000004            // 2 on next swing 
    204204#define SPELL_ATTR_UNK3                           0x00000008            // 3 not set in 2.4.2 
     
    737737    (1<<MECHANIC_DAZE    )|(1<<MECHANIC_SAPPED   ) ) 
    738738 
    739 // Spell dispell type 
     739// Spell dispel type 
    740740enum DispelType 
    741741{ 
  • trunk/src/game/Spell.cpp

    r228 r229  
    366366    m_powerCost = 0;                                        // setup to correct value in Spell::prepare, don't must be used before. 
    367367    m_casttime = 0;                                         // setup to correct value in Spell::prepare, don't must be used before. 
    368     m_timer = 0;                                            // will set to castime in preper 
     368    m_timer = 0;                                            // will set to castime in prepare 
    369369 
    370370    m_needAliveTargetMask = 0; 
     
    16801680                    TagUnitMap.push_back(target); 
    16811681        }break; 
    1682         // TARGET_SINGLE_PARTY means that the spells can only be casted on a party member and not on the caster (some sceals, fire shield from imp, etc..) 
     1682        // TARGET_SINGLE_PARTY means that the spells can only be casted on a party member and not on the caster (some seals, fire shield from imp, etc..) 
    16831683        case TARGET_SINGLE_PARTY: 
    16841684        { 
  • trunk/src/game/SpellAuraDefines.h

    r102 r229  
    214214    SPELL_AURA_MOD_MOUNTED_SPEED_NOT_STACK = 172, 
    215215    SPELL_AURA_ALLOW_CHAMPION_SPELLS = 173, 
    216     SPELL_AURA_MOD_SPELL_DAMAGE_OF_STAT_PERCENT = 174,      // by defeult intelect, dependent from SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT 
     216    SPELL_AURA_MOD_SPELL_DAMAGE_OF_STAT_PERCENT = 174,      // by default intellect, dependent from SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT 
    217217    SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT = 175, 
    218218    SPELL_AURA_SPIRIT_OF_REDEMPTION = 176, 
  • trunk/src/game/SpellAuras.cpp

    r213 r229  
    216216    &Aura::HandleShieldBlockValue,                          //158 SPELL_AURA_MOD_SHIELD_BLOCKVALUE 
    217217    &Aura::HandleNoImmediateEffect,                         //159 SPELL_AURA_NO_PVP_CREDIT      only for Honorless Target spell 
    218     &Aura::HandleNoImmediateEffect,                         //160 SPELL_AURA_MOD_AOE_AVOIDANCE                 implemended in Unit::MagicSpellHitResult 
     218    &Aura::HandleNoImmediateEffect,                         //160 SPELL_AURA_MOD_AOE_AVOIDANCE                 implemented in Unit::MagicSpellHitResult 
    219219    &Aura::HandleNoImmediateEffect,                         //161 SPELL_AURA_MOD_HEALTH_REGEN_IN_COMBAT 
    220220    &Aura::HandleAuraPowerBurn,                             //162 SPELL_AURA_POWER_BURN_MANA 
     
    230230    &Aura::HandleAuraModIncreaseMountedSpeed,               //172 SPELL_AURA_MOD_MOUNTED_SPEED_NOT_STACK 
    231231    &Aura::HandleUnused,                                    //173 SPELL_AURA_ALLOW_CHAMPION_SPELLS  only for Proclaim Champion spell 
    232     &Aura::HandleModSpellDamagePercentFromStat,             //174 SPELL_AURA_MOD_SPELL_DAMAGE_OF_STAT_PERCENT  implemented in Unit::SpellBaseDamageBonus (by defeult intelect, dependent from SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT) 
     232    &Aura::HandleModSpellDamagePercentFromStat,             //174 SPELL_AURA_MOD_SPELL_DAMAGE_OF_STAT_PERCENT  implemented in Unit::SpellBaseDamageBonus (by default intellect, dependent from SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT) 
    233233    &Aura::HandleModSpellHealingPercentFromStat,            //175 SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT implemented in Unit::SpellBaseHealingBonus 
    234234    &Aura::HandleSpiritOfRedemption,                        //176 SPELL_AURA_SPIRIT_OF_REDEMPTION   only for Spirit of Redemption spell, die at aura end 
     
    243243    &Aura::HandleNoImmediateEffect,                         //185 SPELL_AURA_MOD_ATTACKER_RANGED_HIT_CHANCE implemented in Unit::RollMeleeOutcomeAgainst 
    244244    &Aura::HandleNoImmediateEffect,                         //186 SPELL_AURA_MOD_ATTACKER_SPELL_HIT_CHANCE  implemented in Unit::MagicSpellHitResult 
    245     &Aura::HandleNoImmediateEffect,                         //187 SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE  implemended in Unit::GetUnitCriticalChance 
     245    &Aura::HandleNoImmediateEffect,                         //187 SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE  implemented in Unit::GetUnitCriticalChance 
    246246    &Aura::HandleNoImmediateEffect,                         //188 SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_CHANCE implemented in Unit::GetUnitCriticalChance 
    247247    &Aura::HandleModRating,                                 //189 SPELL_AURA_MOD_RATING 
     
    10551055        } 
    10561056    } 
    1057     else if(sameaura)                                       // decrease count for spell, only for same aura effect, or this spell auras in remove proccess. 
     1057    else if(sameaura)                                       // decrease count for spell, only for same aura effect, or this spell auras in remove process. 
    10581058        UpdateSlotCounterAndDuration(false); 
    10591059} 
     
    12051205    uint64 originalCasterGUID = GetCasterGUID(); 
    12061206 
    1207     SpellEntry const *triggredSpellInfo = sSpellStore.LookupEntry(trigger_spell_id); 
     1207    SpellEntry const *triggeredSpellInfo = sSpellStore.LookupEntry(trigger_spell_id); 
    12081208    SpellEntry const *auraSpellInfo = GetSpellProto(); 
    12091209    uint32 auraId = auraSpellInfo->Id; 
    12101210 
    12111211    // specific code for cases with no trigger spell provided in field 
    1212     if (triggredSpellInfo == NULL) 
     1212    if (triggeredSpellInfo == NULL) 
    12131213    { 
    12141214        switch(auraSpellInfo->SpellFamilyName) 
     
    12181218                switch(auraId) 
    12191219                { 
    1220                     // Firestone Passive (1-5 rangs) 
     1220                    // Firestone Passive (1-5 ranks) 
    12211221                    case 758: 
    12221222                    case 17945: 
     
    12521252//                    // Polymorphic Ray 
    12531253//                    case 6965: break; 
    1254 //                    // Fire Nova (1-7 Rangs) 
     1254//                    // Fire Nova (1-7 ranks) 
    12551255//                    case 8350: 
    12561256//                    case 8508: 
     
    18241824        } 
    18251825        // Reget trigger spell proto 
    1826         triggredSpellInfo = sSpellStore.LookupEntry(trigger_spell_id); 
    1827         if(triggredSpellInfo == NULL) 
     1826        triggeredSpellInfo = sSpellStore.LookupEntry(trigger_spell_id); 
     1827        if(triggeredSpellInfo == NULL) 
    18281828        { 
    18291829            sLog.outError("Aura::TriggerSpell: Spell %u have 0 in EffectTriggered[%d], not handled custom case?",GetId(),GetEffIndex()); 
     
    18331833    else 
    18341834    { 
    1835         // Spell exist but require costum code 
     1835        // Spell exist but require custom code 
    18361836        switch(auraId) 
    18371837        { 
     
    18431843                // 1) target show casting at each triggered cast: target don't must show casting animation for any triggered spell 
    18441844                //      but must show affect apply like item casting 
    1845                 // 2) maybe aura must be replace by new with accumulative stat mods insteed stacking 
     1845                // 2) maybe aura must be replace by new with accumulative stat mods instead stacking 
    18461846 
    18471847                // prevent cast by triggered auras 
     
    18501850 
    18511851                // stop triggering after each affected stats lost > 90 
    1852                 int32 intelectLoss = 0; 
     1852                int32 intellectLoss = 0; 
    18531853                int32 spiritLoss = 0; 
    18541854 
     
    18601860                        switch((*i)->GetModifier()->m_miscvalue) 
    18611861                        { 
    1862                             case STAT_INTELLECT: intelectLoss += (*i)->GetModifier()->m_amount; break; 
     1862                            case STAT_INTELLECT: intellectLoss += (*i)->GetModifier()->m_amount; break; 
    18631863                            case STAT_SPIRIT:    spiritLoss   += (*i)->GetModifier()->m_amount; break; 
    18641864                            default: break; 
     
    18671867                } 
    18681868 
    1869                 if(intelectLoss <= -90 && spiritLoss <= -90) 
     1869                if(intellectLoss <= -90 && spiritLoss <= -90) 
    18701870                    return; 
    18711871 
     
    18821882        } 
    18831883    } 
    1884     m_target->CastSpell(target, triggredSpellInfo, true, 0, this, originalCasterGUID); 
     1884    m_target->CastSpell(target, triggeredSpellInfo, true, 0, this, originalCasterGUID); 
    18851885    /*// All ok cast by default case 
    1886     Spell *spell = new Spell(m_target, triggredSpellInfo, true, originalCasterGUID ); 
     1886    Spell *spell = new Spell(m_target, triggeredSpellInfo, true, originalCasterGUID ); 
    18871887 
    18881888    SpellCastTargets targets; 
     
    20092009        if(GetId()==45934) 
    20102010        { 
    2011             // Kill target if dispeled 
     2011            // Kill target if dispelled 
    20122012            if (m_removeMode==AURA_REMOVE_BY_DISPEL) 
    20132013                m_target->DealDamage(m_target, m_target->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false); 
     
    25662566    else 
    25672567    { 
    2568         m_target->SetDisplayId(m_target->GetNativeDisplayId()); 
     2568        if(modelid > 0) 
     2569            m_target->SetDisplayId(m_target->GetNativeDisplayId()); 
    25692570        m_target->SetByteValue(UNIT_FIELD_BYTES_2, 3, FORM_NONE); 
    25702571        if(m_target->getClass() == CLASS_DRUID) 
     
    27172718            for(Unit::AuraList::const_iterator i = otherTransforms.begin();i != otherTransforms.end(); ++i) 
    27182719            { 
    2719                 // negative auras are prefered 
     2720                // negative auras are preferred 
    27202721                if(!IsPositiveSpell((*i)->GetSpellProto()->Id)) 
    27212722                { 
     
    31173118        return; 
    31183119 
    3119     // main-hand attack speed already set to special value for feral form already and don't must chnage and reset at remove. 
     3120    // main-hand attack speed already set to special value for feral form already and don't must change and reset at remove. 
    31203121    if (((Player *)m_target)->IsInFeralForm()) 
    31213122        return; 
     
    34393440            { 
    34403441                uint32 state = currentSpell->getState(); 
    3441                 // Stop spells on prepere or casting state 
     3442                // Stop spells on prepare or casting state 
    34423443                if ( state == SPELL_STATE_PREPARING || state == SPELL_STATE_CASTING ) 
    34433444                { 
     
    40124013                    float mwb_min = caster->GetWeaponDamageRange(BASE_ATTACK,MINDAMAGE); 
    40134014                    float mwb_max = caster->GetWeaponDamageRange(BASE_ATTACK,MAXDAMAGE); 
    4014                     // WARNING! in 3.0 multipler 0.00743f change to 0.6 
     4015                    // WARNING! in 3.0 multiplier 0.00743f change to 0.6 
    40154016                    m_modifier.m_amount+=int32(((mwb_min+mwb_max)/2+ap*mws/14000)*0.00743f); 
    40164017                } 
     
    40404041            if (m_spellProto->SpellFamilyFlags & 0x000000000000800000LL) 
    40414042            { 
    4042                 // $AP * min(0.06*$cp, 0.24)/6 [Yes, there is no difference, wheather 4 or 5 CPs are being used] 
     4043                // $AP * min(0.06*$cp, 0.24)/6 [Yes, there is no difference, whether 4 or 5 CPs are being used] 
    40434044                if (apply && !loading && caster && caster->GetTypeId() == TYPEID_PLAYER) 
    40444045                { 
     
    40934094            if (m_spellProto->SpellFamilyFlags & 0x000000000000100000LL) 
    40944095            { 
    4095                 // Dmg/tick = $AP*min(0.01*$cp, 0.03) [Like Rip: only the first three CP inrease the contribution from AP] 
     4096                // Dmg/tick = $AP*min(0.01*$cp, 0.03) [Like Rip: only the first three CP increase the contribution from AP] 
    40964097                if (apply && !loading && caster && caster->GetTypeId() == TYPEID_PLAYER) 
    40974098                { 
     
    44234424    if(m_modifier.m_miscvalue != SPELL_SCHOOL_MASK_NORMAL) 
    44244425    { 
    4425         // support required adding replace UpdateArmor by loop by UpdateResistence at intelect update 
     4426        // support required adding replace UpdateArmor by loop by UpdateResistence at intellect update 
    44264427        // and include in UpdateResistence same code as in UpdateArmor for aura mod apply. 
    4427         sLog.outError("Aura SPELL_AURA_MOD_RESISTANCE_OF_STAT_PERCENT(182) need adding support for non-armor resistences!"); 
     4428        sLog.outError("Aura SPELL_AURA_MOD_RESISTANCE_OF_STAT_PERCENT(182) need adding support for non-armor resistances!"); 
    44284429        return; 
    44294430    } 
     
    48884889    { 
    48894890        // support required adding UpdateAttackPowerAndDamage calls at stat update 
    4890         sLog.outError("Aura SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT (212) need support non-intelect stats!"); 
     4891        sLog.outError("Aura SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT (212) need support non-intellect stats!"); 
    48914892        return; 
    48924893    } 
  • trunk/src/game/SpellEffects.cpp

    r227 r229  
    810810                case 13567:                                 // Dummy Trigger 
    811811                { 
    812                     // can be used for different aura triggreing, so select by aura 
     812                    // can be used for different aura triggering, so select by aura 
    813813                    if(!m_triggeredByAuraSpell || !unitTarget) 
    814814                        return; 
     
    13531353                        case 25461: spellid = 25460; break; // Rank 7 
    13541354                        default: 
    1355                             sLog.outError("Spell::EffectDummy: Spell 28598 triggered by unhandeled spell %u",m_triggeredByAuraSpell->Id); 
     1355                            sLog.outError("Spell::EffectDummy: Spell 28598 triggered by unhandled spell %u",m_triggeredByAuraSpell->Id); 
    13561356                            return; 
    13571357                    } 
     
    26662666 
    26672667    // Some level depends spells 
    2668     int multipler  = 0; 
     2668    int multiplier  = 0; 
    26692669    int level_diff = 0; 
    26702670    switch (m_spellInfo->Id) 
     
    26732673        case 9512: 
    26742674            level_diff = m_caster->getLevel() - 40; 
    2675             multipler  = 2; 
     2675            multiplier  = 2; 
    26762676            break; 
    26772677        // Blood Fury 
    26782678        case 24571: 
    26792679            level_diff = m_caster->getLevel() - 60; 
    2680             multipler  = 10; 
     2680            multiplier  = 10; 
    26812681            break; 
    26822682        // Burst of Energy 
    26832683        case 24532: 
    26842684            level_diff = m_caster->getLevel() - 60; 
    2685             multipler  = 4; 
     2685            multiplier  = 4; 
    26862686            break; 
    26872687        default: 
     
    26902690 
    26912691    if (level_diff > 0) 
    2692         damage -= multipler * level_diff; 
     2692        damage -= multiplier * level_diff; 
    26932693 
    26942694    if(damage < 0) 
     
    32933293        return; 
    32943294 
    3295     // Fill possible dispell list 
     3295    // Fill possible dispel list 
    32963296    std::vector <Aura *> dispel_list; 
    32973297 
     
    33283328        std::list < uint32 > fail_list;                     // spell_id 
    33293329        int32 list_size = dispel_list.size(); 
    3330         // Dispell N = damage buffs (or while exist buffs for dispel) 
     3330        // dispel N = damage buffs (or while exist buffs for dispel) 
    33313331        for (int32 count=0; count < damage && list_size > 0; ++count) 
    33323332        { 
     
    33523352            for (std::vector<Aura *>::iterator j = dispel_list.begin(); j != dispel_list.end(); ) 
    33533353            { 
    3354                 Aura *dispeled = *j; 
    3355                 if (dispeled->GetId() == aur->GetId() && dispeled->GetCasterGUID() == aur->GetCasterGUID()) 
     3354                Aura *dispelled = *j; 
     3355                if (dispelled->GetId() == aur->GetId() && dispelled->GetCasterGUID() == aur->GetCasterGUID()) 
    33563356                { 
    33573357                    j = dispel_list.erase(j); 
     
    33693369            data.append(unitTarget->GetPackGUID());         // Victim GUID 
    33703370            data.append(m_caster->GetPackGUID());           // Caster GUID 
    3371             data << uint32(m_spellInfo->Id);                // Dispell spell id 
     3371            data << uint32(m_spellInfo->Id);                // dispel spell id 
    33723372            data << uint8(0);                               // not used 
    33733373            data << uint32(count);                          // count 
     
    33763376                SpellEntry const* spellInfo = sSpellStore.LookupEntry(j->first); 
    33773377                data << uint32(spellInfo->Id);              // Spell Id 
    3378                 data << uint8(0);                           // 0 - dispeled !=0 cleansed 
     3378                data << uint8(0);                           // 0 - dispelled !=0 cleansed 
    33793379                unitTarget->RemoveAurasDueToSpellByDispel(spellInfo->Id, j->second, m_caster); 
    33803380            } 
     
    34093409            data << uint64(m_caster->GetGUID());            // Caster GUID 
    34103410            data << uint64(unitTarget->GetGUID());          // Victim GUID 
    3411             data << uint32(m_spellInfo->Id);                // Dispell spell id 
     3411            data << uint32(m_spellInfo->Id);                // dispel spell id 
    34123412            for (std::list< uint32 >::iterator j = fail_list.begin(); j != fail_list.end(); ++j) 
    34133413                data << uint32(*j);                         // Spell Id 
     
    62256225        std::list < std::pair<uint32,uint64> > success_list; 
    62266226        int32 list_size = steal_list.size(); 
    6227         // Dispell N = damage buffs (or while exist buffs for dispel) 
     6227        // dispel N = damage buffs (or while exist buffs for dispel) 
    62286228        for (int32 count=0; count < damage && list_size > 0; ++count) 
    62296229        { 
     
    62546254            data.append(unitTarget->GetPackGUID());  // Victim GUID 
    62556255            data.append(m_caster->GetPackGUID());    // Caster GUID 
    6256             data << uint32(m_spellInfo->Id);         // Dispell spell id 
     6256            data << uint32(m_spellInfo->Id);         // dispel spell id 
    62576257            data << uint8(0);                        // not used 
    62586258            data << uint32(count);                   // count 
  • trunk/src/game/SpellMgr.cpp

    r219 r229  
    486486    if (!spellproto) return false; 
    487487 
    488     // spells with atleast one negative effect are considered negative 
     488    // spells with at least one negative effect are considered negative 
    489489    // some self-applied spells have negative effects but in self casting case negative check ignored. 
    490490    for (int i = 0; i < 3; i++) 
  • trunk/src/game/SpellMgr.h

    r219 r229  
    429429inline uint32 GetDispellMask(DispelType dispel) 
    430430{ 
    431     // If dispell all 
     431    // If dispel all 
    432432    if (dispel == DISPEL_ALL) 
    433433        return DISPEL_ALL_MASK; 
  • trunk/src/game/StatSystem.cpp

    r136 r229  
    6969            UpdateMaxPower(POWER_MANA); 
    7070            UpdateAllSpellCritChances(); 
    71             UpdateAttackPowerAndDamage(true);               //SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT, only intelect currently 
     71            UpdateAttackPowerAndDamage(true);               //SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT, only intellect currently 
    7272            UpdateArmor();                                  //SPELL_AURA_MOD_RESISTANCE_OF_INTELLECT_PERCENT, only armor currently 
    7373            break; 
     
    385385        weapon_maxdamage = lvl*1.25*att_speed; 
    386386    } 
    387     else if(!IsUseEquipedWeapon(attType==BASE_ATTACK))      //check if player not in form but still can't use weapon (broken/etc) 
     387    else if(!IsUseEquippedWeapon(attType==BASE_ATTACK))      //check if player not in form but still can't use weapon (broken/etc) 
    388388    { 
    389389        weapon_mindamage = BASE_MINDAMAGE; 
  • trunk/src/game/TaxiHandler.cpp

    r102 r229  
    202202    // 1) end taxi path in far (multi-node) flight 
    203203    // 2) switch from one map to other in case multim-map taxi path 
    204     // we need proccess only (1) 
     204    // we need process only (1) 
    205205    uint32 curDest = GetPlayer()->m_taxi.GetTaxiDestination(); 
    206206    if(!curDest) 
  • trunk/src/game/ThreatManager.cpp

    r198 r229  
    133133    { 
    134134        Creature* creature = (Creature* ) getSourceUnit(); 
    135         online = getTarget()->isInAccessablePlaceFor(creature); 
     135        online = getTarget()->isInAccessiblePlaceFor(creature); 
    136136        if(!online) 
    137137        { 
    138138            if(creature->AI()->canReachByRangeAttack(getTarget())) 
    139                 online = true;                              // not accessable but stays online 
     139                online = true;                              // not accessible but stays online 
    140140        } 
    141141        else 
     
    156156        iOnline = pIsOnline; 
    157157        if(!iOnline) 
    158             setAccessibleState(false);                      // if not online that not accessable as well 
     158            setAccessibleState(false);                      // if not online that not accessible as well 
    159159        fireStatusChanged(ThreatRefStatusChangeEvent(UEV_THREAT_REF_ONLINE_STATUS, this)); 
    160160    } 
     
    279279        assert(target);                                     // if the ref has status online the target must be there ! 
    280280         
    281         // some units are prefered in comparison to others 
     281        // some units are preferred in comparison to others 
    282282        if(iter != lastRef && (target->IsImmunedToDamage(pAttacker->GetMeleeDamageSchoolMask(), false) || 
    283283                target->hasUnitState(UNIT_STAT_CONFUSED | UNIT_STAT_FLEEING) 
  • trunk/src/game/ThreatManager.h

    r102 r229  
    7575 
    7676        // The Unit might be in water and the creature can not enter the water, but has range attack 
    77         // in this case online = true, but accessable = false 
    78         bool isAccessable() const { return iAccessible; } 
     77        // in this case online = true, but accessible = false 
     78        bool isAccessible() const { return iAccessible; } 
    7979 
    8080        // used for temporary setting a threat and reducting it later again. 
  • trunk/src/game/Unit.cpp

    r226 r229  
    388388    WorldPacket data( SMSG_MONSTER_MOVE, (GetPackGUID().size()+4+4+4+4+1+4+4+4+pathSize*4*3) ); 
    389389    data.append(GetPackGUID()); 
    390     data << GetPositionX( ) 
    391         << GetPositionY( ) 
    392         << GetPositionZ( ); 
    393     data << GetOrientation( ); 
     390    data << GetPositionX(); 
     391    data << GetPositionY(); 
     392    data << GetPositionZ(); 
     393 
     394    // unknown field - unrelated to orientation 
     395    // seems to increment about 1000 for every 1.7 seconds 
     396    // for now, we'll just use mstime 
     397    data << getMSTime(); 
     398 
    394399    data << uint8( 0 ); 
    395400    data << uint32( MovementFlags ); 
     
    869874            if(getVictim()) 
    870875            { 
    871                 // if have target and damage pVictim just call AI recation 
     876                // if have target and damage pVictim just call AI reaction 
    872877                if(pVictim != getVictim() && pVictim->GetTypeId()==TYPEID_UNIT && ((Creature*)pVictim)->AI()) 
    873878                    ((Creature*)pVictim)->AI()->AttackedBy(this); 
     
    983988} 
    984989 
    985 void Unit::CastSpell(Unit* Victim, uint32 spellId, bool triggered, Item *castItem, Aura* triggredByAura, uint64 originalCaster) 
     990void Unit::CastSpell(Unit* Victim, uint32 spellId, bool triggered, Item *castItem, Aura* triggeredByAura, uint64 originalCaster) 
    986991{ 
    987992    SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellId ); 
     
    993998    } 
    994999 
    995     CastSpell(Victim,spellInfo,triggered,castItem,triggredByAura, originalCaster); 
    996 } 
    997  
    998 void Unit::CastSpell(Unit* Victim,SpellEntry const *spellInfo, bool triggered, Item *castItem, Aura* triggredByAura, uint64 originalCaster) 
     1000    CastSpell(Victim,spellInfo,triggered,castItem,triggeredByAura, originalCaster); 
     1001} 
     1002 
     1003void Unit::CastSpell(Unit* Victim,SpellEntry const *spellInfo, bool triggered, Item *castItem, Aura* triggeredByAura, uint64 originalCaster) 
    9991004{ 
    10001005    assert(Victim); 
     
    10081013        DEBUG_LOG("WORLD: cast Item spellId - %i", spellInfo->Id); 
    10091014 
    1010     if(!originalCaster && triggredByAura) 
    1011         originalCaster = triggredByAura->GetCasterGUID(); 
     1015    if(!originalCaster && triggeredByAura) 
     1016        originalCaster = triggeredByAura->GetCasterGUID(); 
    10121017 
    10131018    Spell *spell = new Spell(this, spellInfo, triggered, originalCaster ); 
     
    10171022    targets.setDestination( Victim->GetPositionX(), Victim->GetPositionY(), Victim->GetPositionZ(), false); 
    10181023    spell->m_CastItem = castItem; 
    1019     spell->prepare(&targets, triggredByAura); 
    1020 } 
    1021  
    1022 void Unit::CastCustomSpell(Unit* Victim,uint32 spellId, int32 const* bp0, int32 const* bp1, int32 const* bp2, bool triggered, Item *castItem, Aura* triggredByAura, uint64 originalCaster) 
     1024    spell->prepare(&targets, triggeredByAura); 
     1025} 
     1026 
     1027void Unit::CastCustomSpell(Unit* Victim,uint32 spellId, int32 const* bp0, int32 const* bp1, int32 const* bp2, bool triggered, Item *castItem, Aura* triggeredByAura, uint64 originalCaster) 
    10231028{ 
    10241029    SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellId ); 
     
    10301035    } 
    10311036 
    1032     CastCustomSpell(Victim,spellInfo,bp0,bp1,bp2,triggered,castItem,triggredByAura, originalCaster); 
    1033 } 
    1034  
    1035 void Unit::CastCustomSpell(Unit* Victim,SpellEntry const *spellInfo, int32 const* bp0, int32 const* bp1, int32 const* bp2, bool triggered, Item *castItem, Aura* triggredByAura, uint64 originalCaster) 
     1037    CastCustomSpell(Victim,spellInfo,bp0,bp1,bp2,triggered,castItem,triggeredByAura, originalCaster); 
     1038} 
     1039 
     1040void Unit::CastCustomSpell(Unit* Victim,SpellEntry const *spellInfo, int32 const* bp0, int32 const* bp1, int32 const* bp2, bool triggered, Item *castItem, Aura* triggeredByAura, uint64 originalCaster) 
    10361041{ 
    10371042    if(!spellInfo) 
     
    10441049        DEBUG_LOG("WORLD: cast Item spellId - %i", spellInfo->Id); 
    10451050 
    1046     if(!originalCaster && triggredByAura) 
    1047         originalCaster = triggredByAura->GetCasterGUID(); 
     1051    if(!originalCaster && triggeredByAura) 
     1052        originalCaster = triggeredByAura->GetCasterGUID(); 
    10481053 
    10491054    Spell *spell = new Spell(this, spellInfo, triggered, originalCaster); 
     
    10611066    targets.setUnitTarget( Victim ); 
    10621067    spell->m_CastItem = castItem; 
    1063     spell->prepare(&targets, triggredByAura); 
     1068    spell->prepare(&targets, triggeredByAura); 
    10641069} 
    10651070 
    10661071// used for scripting 
    1067 void Unit::CastSpell(float x, float y, float z, uint32 spellId, bool triggered, Item *castItem, Aura* triggredByAura, uint64 originalCaster) 
     1072void Unit::CastSpell(float x, float y, float z, uint32 spellId, bool triggered, Item *castItem, Aura* triggeredByAura, uint64 originalCaster) 
    10681073{ 
    10691074    SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellId ); 
     
    10751080    } 
    10761081 
    1077     CastSpell(x, y, z,spellInfo,triggered,castItem,triggredByAura, originalCaster); 
     1082    CastSpell(x, y, z,spellInfo,triggered,castItem,triggeredByAura, originalCaster); 
    10781083} 
    10791084 
    10801085// used for scripting 
    1081 void Unit::CastSpell(float x, float y, float z, SpellEntry const *spellInfo, bool triggered, Item *castItem, Aura* triggredByAura, uint64 originalCaster) 
     1086void Unit::CastSpell(float x, float y, float z, SpellEntry const *spellInfo, bool triggered, Item *castItem, Aura* triggeredByAura, uint64 originalCaster) 
    10821087{ 
    10831088    if(!spellInfo) 
     
    10901095        DEBUG_LOG("WORLD: cast Item spellId - %i", spellInfo->Id); 
    10911096 
    1092     if(!originalCaster && triggredByAura) 
    1093         originalCaster = triggredByAura->GetCasterGUID(); 
     1097    if(!originalCaster && triggeredByAura) 
     1098        originalCaster = triggeredByAura->GetCasterGUID(); 
    10941099 
    10951100    Spell *spell = new Spell(this, spellInfo, triggered, originalCaster ); 
     
    10981103    targets.setDestination(x, y, z); 
    10991104    spell->m_CastItem = castItem; 
    1100     spell->prepare(&targets, triggredByAura); 
     1105    spell->prepare(&targets, triggeredByAura); 
    11011106} 
    11021107 
     
    11061111    DEBUG_LOG("DealFlatDamage (BEFORE) >> DMG:%u", *damage); 
    11071112 
    1108     // Per-damage calss calculation 
     1113    // Per-damage class calculation 
    11091114    switch (spellInfo->DmgClass) 
    11101115    { 
     
    17121717    } 
    17131718 
    1714     // only split damage if not damaing yourself 
     1719    // only split damage if not damaging yourself 
    17151720    if(pVictim != this) 
    17161721    { 
     
    21922197        hitInfo = HITINFO_LEFTSWING; 
    21932198    else 
    2194         return;                                             // ignore ranaged case 
     2199        return;                                             // ignore ranged case 
    21952200 
    21962201    uint32 extraAttacks = m_extraAttacks; 
     
    23062311    else 
    23072312    { 
    2308         // parry can be avoided only by some abilites 
     2313        // parry can be avoided only by some abilities 
    23092314        parry_chance = pVictim->GetUnitParryChance(); 
    23102315        // block might be bypassed by it as well 
     
    23202325        crit_chance += GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, spellInfo->SchoolMask); 
    23212326 
    2322         if( dodge_chance != 0.0f )                          // if dodge chance is already 0, ignore talents fpr speed 
     2327        if( dodge_chance != 0.0f )                          // if dodge chance is already 0, ignore talents for speed 
    23232328        { 
    23242329            AuraList const& mCanNotBeDodge = GetAurasByType(SPELL_AURA_IGNORE_COMBAT_RESULT); 
     
    28862891 
    28872892    // TODO need use this code for spell hit result calculation 
    2888     // now code commented for compotability 
     2893    // now code commented for computability 
    28892894    switch (spell->DmgClass) 
    28902895    { 
     
    30583063                return GetFloatValue(PLAYER_BLOCK_PERCENTAGE); 
    30593064        } 
    3060         // is player but has no block ability or no not broken shield equiped 
     3065        // is player but has no block ability or no not broken shield equipped 
    30613066        return 0.0f; 
    30623067    } 
     
    31393144            return GetMaxSkillValueForLevel();              // always maximized SKILL_FERAL_COMBAT in fact 
    31403145 
    3141         // weaon skill or (unarmed for base attack) 
     3146        // weapon skill or (unarmed for base attack) 
    31423147        uint32  skill = item ? item->GetSkill() : SKILL_UNARMED; 
    31433148 
     
    34573462} 
    34583463 
    3459 bool Unit::isInAccessablePlaceFor(Creature const* c) const 
     3464bool Unit::isInAccessiblePlaceFor(Creature const* c) const 
    34603465{ 
    34613466    if(IsInWater()) 
     
    34933498float Unit::GetTotalAuraMultiplier(AuraType auratype) const 
    34943499{ 
    3495     float multipler = 1.0f; 
     3500    float multiplier = 1.0f; 
    34963501 
    34973502    AuraList const& mTotalAuraList = GetAurasByType(auratype); 
    34983503    for(AuraList::const_iterator i = mTotalAuraList.begin();i != mTotalAuraList.end(); ++i) 
    3499         multipler *= (100.0f + (*i)->GetModifier()->m_amount)/100.0f; 
    3500  
    3501     return multipler; 
     3504        multiplier *= (100.0f + (*i)->GetModifier()->m_amount)/100.0f; 
     3505 
     3506    return multiplier; 
    35023507} 
    35033508 
     
    35423547float Unit::GetTotalAuraMultiplierByMiscMask(AuraType auratype, uint32 misc_mask) const 
    35433548{ 
    3544     float multipler = 1.0f; 
     3549    float multiplier = 1.0f; 
    35453550 
    35463551    AuraList const& mTotalAuraList = GetAurasByType(auratype); 
     
    35493554        Modifier* mod = (*i)->GetModifier(); 
    35503555        if (mod->m_miscvalue & misc_mask) 
    3551             multipler *= (100.0f + mod->m_amount)/100.0f; 
    3552     } 
    3553     return multipler; 
     3556            multiplier *= (100.0f + mod->m_amount)/100.0f; 
     3557    } 
     3558    return multiplier; 
    35543559} 
    35553560 
     
    36003605float Unit::GetTotalAuraMultiplierByMiscValue(AuraType auratype, int32 misc_value) const 
    36013606{ 
    3602     float multipler = 1.0f; 
     3607    float multiplier = 1.0f; 
    36033608 
    36043609    AuraList const& mTotalAuraList = GetAurasByType(auratype); 
     
    36073612        Modifier* mod = (*i)->GetModifier(); 
    36083613        if (mod->m_miscvalue == misc_value) 
    3609             multipler *= (100.0f + mod->m_amount)/100.0f; 
    3610     } 
    3611     return multipler; 
     3614            multiplier *= (100.0f + mod->m_amount)/100.0f; 
     3615    } 
     3616    return multiplier; 
    36123617} 
    36133618 
     
    37253730        { 
    37263731            delete Aur; 
    3727             return false;                                   // couldnt remove conflicting aura with higher rank 
     3732            return false;                                   // couldn't remove conflicting aura with higher rank 
    37283733        } 
    37293734    } 
     
    38673872        { 
    38683873            // prevent remove dummy triggered spells at next effect aura add 
    3869             switch(spellProto->Effect[j])                   // main spell auras added added after triggred spell 
     3874            switch(spellProto->Effect[j])                   // main spell auras added added after triggered spell 
    38703875            { 
    38713876                case SPELL_EFFECT_DUMMY: 
     
    38803885                break; 
    38813886 
    3882             // prevent remove form main spell by triggred passive spells 
     3887            // prevent remove form main spell by triggered passive spells 
    38833888            switch(i_spellProto->EffectApplyAuraName[j])    // main aura added before triggered spell 
    38843889            { 
     
    40494054    // Create dispel mask by dispel type 
    40504055    uint32 dispelMask = GetDispellMask(type); 
    4051     // Dispel all existing auras vs current dispell type 
     4056    // Dispel all existing auras vs current dispel type 
    40524057    AuraMap& auras = GetAuras(); 
    40534058    for(AuraMap::iterator itr = auras.begin(); itr != auras.end(); ) 
     
    44824487 
    44834488    // Assign melee/ranged proc flags for magic attacks, that are actually melee/ranged abilities 
    4484     // not assign for spell proc triggered spell to prevent infinity (or unexpacted 2-3 times) melee damage spell proc call with melee damage effect 
     4489    // not assign for spell proc triggered spell to prevent infinity (or unexpected 2-3 times) melee damage spell proc call with melee damage effect 
    44854490    // That is the question though if it's fully correct 
    44864491    if(procSpell && !isTriggeredSpell) 
     
    45094514    if (procAttacker) 
    45104515    { 
    4511         // procces auras that not generate casts at proc event before auras that generate casts to prevent proc aura added at prev. proc aura execute in set 
     4516        // processing auras that not generate casts at proc event before auras that generate casts to prevent proc aura added at prev. proc aura execute in set 
    45124517        ProcDamageAndSpellFor(false,pVictim,procAttacker,attackerProcEffectAuraTypes,attType, procSpell, damage, damageSchoolMask); 
    45134518        ProcDamageAndSpellFor(false,pVictim,procAttacker,attackerProcCastAuraTypes,attType, procSpell, damage, damageSchoolMask); 
     
    45184523    if(pVictim && pVictim->isAlive() && procVictim) 
    45194524    { 
    4520         // procces auras that not generate casts at proc event before auras that generate casts to prevent proc aura added at prev. proc aura execute in set 
     4525        // processing auras that not generate casts at proc event before auras that generate casts to prevent proc aura added at prev. proc aura execute in set 
    45214526        pVictim->ProcDamageAndSpellFor(true,this,procVictim,victimProcEffectAuraTypes,attType,procSpell, damage, damageSchoolMask); 
    45224527        pVictim->ProcDamageAndSpellFor(true,this,procVictim,victimProcCastAuraTypes,attType,procSpell, damage, damageSchoolMask); 
     
    47074712                case 35429: 
    47084713                { 
    4709                     // prevent chain of triggred spell from same triggred spell 
     4714                    // prevent chain of triggered spell from same triggered spell 
    47104715                    if(procSpell && procSpell->Id==26654) 
    47114716                        return false; 
     
    57295734 
    57305735                uint32 spellId = 0; 
    5731                 // Every Lightning Bolt and Chain Lightning spell have dublicate vs half damage and zero cost 
     5736                // Every Lightning Bolt and Chain Lightning spell have duplicate vs half damage and zero cost 
    57325737                switch (procSpell->Id) 
    57335738                { 
     
    57725777                    ((Player*)this)->RemoveSpellCooldown(spellId); 
    57735778 
    5774                 // Hmmm.. in most case spells alredy set half basepoints but... 
     5779                // Hmmm.. in most case spells already set half basepoints but... 
    57755780                // Lightning Bolt (2-10 rank) have full basepoint and half bonus from level 
    57765781                // As on wiki: 
     
    59905995                    return false; 
    59915996 
    5992                 // custom chnace 
     5997                // custom chance 
    59935998                float chance = 0; 
    59945999                switch (triggeredByAura->GetId()) 
     
    70547059        if(!(*iter)->AttackStop()) 
    70557060        { 
    7056             sLog.outError("WORLD: Unit has an attacker that isnt attacking it!"); 
     7061            sLog.outError("WORLD: Unit has an attacker that isn't attacking it!"); 
    70577062            m_attackers.erase(iter); 
    70587063        } 
     
    83758380{ 
    83768381    // normalized proc chance for weapon attack speed 
    8377     // (odd formulae...) 
     8382    // (odd formula...) 
    83788383    if(isAttackReady(BASE_ATTACK)) 
    83798384        return (GetAttackTime(BASE_ATTACK) * 1.8f / 1000.0f); 
     
    90649069    Unit* target = NULL; 
    90659070 
    9066     //This function only useful once AI has been initilazied 
     9071    //This function only useful once AI has been initialized 
    90679072    if (!((Creature*)this)->AI()) 
    90689073        return false; 
     
    90969101        for(AttackerSet::const_iterator itr = m_attackers.begin(); itr != m_attackers.end(); ++itr) 
    90979102        { 
    9098             if( (*itr)->IsInMap(this) && canAttack(*itr) && (*itr)->isInAccessablePlaceFor((Creature*)this) ) 
     9103            if( (*itr)->IsInMap(this) && canAttack(*itr) && (*itr)->isInAccessiblePlaceFor((Creature*)this) ) 
    90999104                return false; 
    91009105        } 
     
    93389343    if(unitMod >= UNIT_MOD_END || modifierType >= MODIFIER_TYPE_END) 
    93399344    { 
    9340         sLog.outError("ERROR in HandleStatModifier(): nonexisted UnitMods or wrong UnitModifierType!"); 
     9345        sLog.outError("ERROR in HandleStatModifier(): non existed UnitMods or wrong UnitModifierType!"); 
    93419346        return false; 
    93429347    } 
     
    94089413    if( unitMod >= UNIT_MOD_END || modifierType >= MODIFIER_TYPE_END) 
    94099414    { 
    9410         sLog.outError("ERROR: trial to access nonexisted modifier value from UnitMods!"); 
     9415        sLog.outError("ERROR: trial to access non existed modifier value from UnitMods!"); 
    94119416        return 0.0f; 
    94129417    } 
     
    94389443    if(unitMod >= UNIT_MOD_END) 
    94399444    { 
    9440         sLog.outError("ERROR: trial to access nonexisted UnitMods in GetTotalAuraModValue()!"); 
     9445        sLog.outError("ERROR: trial to access non existed UnitMods in GetTotalAuraModValue()!"); 
    94419446        return 0.0f; 
    94429447    } 
     
    97389743    { 
    97399744        InterruptNonMeleeSpells(true); 
    9740         m_Events.KillAllEvents(false);                      // non-delatable (currently casted spells) will not deleted ans will deleated at call in Map::RemoveAllObjectsInRemoveList 
     9745        m_Events.KillAllEvents(false);                      // non-delatable (currently casted spells) will not deleted now but it will deleted at call in Map::RemoveAllObjectsInRemoveList 
    97419746        CombatStop(); 
    97429747        ClearComboPointHolders(); 
     
    1004810053                { 
    1004910054                    sLog.outError("Spell aura %u (id:%u effect:%u) has been deleted before call spell proc event handler",*aur,i->triggeredByAura_SpellPair.first,i->triggeredByAura_SpellPair.second); 
    10050                     sLog.outError("It can be deleted one from early proccesed auras:"); 
     10055                    sLog.outError("It can be deleted one from early processed auras:"); 
    1005110056                    for(ProcTriggeredList::iterator i2 = procTriggered.begin(); i != i2; ++i2) 
    1005210057                        sLog.outError("     Spell aura %u (id:%u effect:%u)",*aur,i2->triggeredByAura_SpellPair.first,i2->triggeredByAura_SpellPair.second); 
     
    1029810303 
    1029910304    // send explicit stop packet 
    10300     // rely on vmaps here because for exemple stormwind is in air 
     10305    // rely on vmaps here because for example stormwind is in air 
    1030110306    float z = MapManager::Instance().GetBaseMap(GetMapId())->GetHeight(GetPositionX(), GetPositionY(), GetPositionZ(), true); 
    1030210307    //if (fabs(GetPositionZ() - z) < 2.0f) 
  • trunk/src/game/Unit.h

    r226 r229  
    214214    HITINFO_MISS                = 0x00000010, 
    215215    HITINFO_ABSORB              = 0x00000020,               // plays absorb sound 
    216     HITINFO_RESIST              = 0x00000040,               // resisted atleast some damage 
     216    HITINFO_RESIST              = 0x00000040,               // resisted at least some damage 
    217217    HITINFO_CRITICALHIT         = 0x00000080, 
    218218    HITINFO_UNK2                = 0x00000100,               // wotlk? 
     
    928928        virtual bool IsInWater() const; 
    929929        virtual bool IsUnderWater() const; 
    930         bool isInAccessablePlaceFor(Creature const* c) const; 
     930        bool isInAccessiblePlaceFor(Creature const* c) const; 
    931931 
    932932        void SendHealSpellLog(Unit *pVictim, uint32 SpellID, uint32 Damage, bool critical = false); 
    933933        void SendEnergizeSpellLog(Unit *pVictim, uint32 SpellID, uint32 Damage,Powers powertype, bool critical = false); 
    934934        uint32 SpellNonMeleeDamageLog(Unit *pVictim, uint32 spellID, uint32 damage, bool isTriggeredSpell = false, bool useSpellDamage = true); 
    935         void CastSpell(Unit* Victim, uint32 spellId, bool triggered, Item *castItem = NULL, Aura* triggredByAura = NULL, uint64 originalCaster = 0); 
    936         void CastSpell(Unit* Victim,SpellEntry const *spellInfo, bool triggered, Item *castItem= NULL, Aura* triggredByAura = NULL, uint64 originalCaster = 0); 
    937         void CastCustomSpell(Unit* Victim, uint32 spellId, int32 const* bp0, int32 const* bp1, int32 const* bp2, bool triggered, Item *castItem= NULL, Aura* triggredByAura = NULL, uint64 originalCaster = 0); 
    938         void CastCustomSpell(Unit* Victim,SpellEntry const *spellInfo, int32 const* bp0, int32 const* bp1, int32 const* bp2, bool triggered, Item *castItem= NULL, Aura* triggredByAura = NULL, uint64 originalCaster = 0); 
    939         void CastSpell(float x, float y, float z, uint32 spellId, bool triggered, Item *castItem = NULL, Aura* triggredByAura = NULL, uint64 originalCaster = 0); 
    940         void CastSpell(float x, float y, float z, SpellEntry const *spellInfo, bool triggered, Item *castItem = NULL, Aura* triggredByAura = NULL, uint64 originalCaster = 0); 
     935        void CastSpell(Unit* Victim, uint32 spellId, bool triggered, Item *castItem = NULL, Aura* triggeredByAura = NULL, uint64 originalCaster = 0); 
     936        void CastSpell(Unit* Victim,SpellEntry const *spellInfo, bool triggered, Item *castItem= NULL, Aura* triggeredByAura = NULL, uint64 originalCaster = 0); 
     937        void CastCustomSpell(Unit* Victim, uint32 spellId, int32 const* bp0, int32 const* bp1, int32 const* bp2, bool triggered, Item *castItem= NULL, Aura* triggeredByAura = NULL, uint64 originalCaster = 0); 
     938        void CastCustomSpell(Unit* Victim,SpellEntry const *spellInfo, int32 const* bp0, int32 const* bp1, int32 const* bp2, bool triggered, Item *castItem= NULL, Aura* triggeredByAura = NULL, uint64 originalCaster = 0); 
     939        void CastSpell(float x, float y, float z, uint32 spellId, bool triggered, Item *castItem = NULL, Aura* triggeredByAura = NULL, uint64 originalCaster = 0); 
     940        void CastSpell(float x, float y, float z, SpellEntry const *spellInfo, bool triggered, Item *castItem = NULL, Aura* triggeredByAura = NULL, uint64 originalCaster = 0); 
    941941 
    942942        bool IsDamageToThreatSpell(SpellEntry const * spellInfo) const; 
     
    13631363 
    13641364        void ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag, AuraTypeSet const& procAuraTypes, WeaponAttackType attType, SpellEntry const * procSpell, uint32 damage, SpellSchoolMask damageSchoolMask ); 
    1365         bool HandleDummyAuraProc(Unit *pVictim, SpellEntry const *spellProto, uint32 effIndex, uint32 damage, Aura* triggredByAura, SpellEntry const * procSpell, uint32 procFlag,uint32 cooldown); 
    1366         bool HandleProcTriggerSpell(Unit *pVictim,uint32 damage, Aura* triggredByAura, SpellEntry const *procSpell, uint32 procFlags,WeaponAttackType attType,uint32 cooldown); 
    1367         bool HandleHasteAuraProc(Unit *pVictim, SpellEntry const *spellProto, uint32 effIndex, uint32 damage, Aura* triggredByAura, SpellEntry const * procSpell, uint32 procFlag,uint32 cooldown); 
    1368         bool HandleOverrideClassScriptAuraProc(Unit *pVictim, int32 scriptId, uint32 damage, Aura* triggredByAura, SpellEntry const *procSpell,uint32 cooldown); 
     1365        bool HandleDummyAuraProc(Unit *pVictim, SpellEntry const *spellProto, uint32 effIndex, uint32 damage, Aura* triggeredByAura, SpellEntry const * procSpell, uint32 procFlag,uint32 cooldown); 
     1366        bool HandleProcTriggerSpell(Unit *pVictim,uint32 damage, Aura* triggeredByAura, SpellEntry const *procSpell, uint32 procFlags,WeaponAttackType attType,uint32 cooldown); 
     1367        bool HandleHasteAuraProc(Unit *pVictim, SpellEntry const *spellProto, uint32 effIndex, uint32 damage, Aura* triggeredByAura, SpellEntry const * procSpell, uint32 procFlag,uint32 cooldown); 
     1368        bool HandleOverrideClassScriptAuraProc(Unit *pVictim, int32 scriptId, uint32 damage, Aura* triggeredByAura, SpellEntry const *procSpell,uint32 cooldown); 
    13691369 
    13701370        uint32 m_state;                                     // Even derived shouldn't modify 
  • trunk/src/game/WaypointMovementGenerator.cpp

    r102 r229  
    154154                    if( !behavior->text[1].empty() ) 
    155155                    { 
    156                         // Select one from max 5 texts (0 and 1 laready checked) 
     156                        // Select one from max 5 texts (0 and 1 already checked) 
    157157                        int i = 2; 
    158158                        for( ; i < 5; ++i ) 
  • trunk/src/game/World.cpp

    r207 r229  
    721721    } 
    722722 
    723     m_configs[CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY] = sConfig.GetBoolDefault("SaveRespawnTimeImmediately",true); 
     723    m_configs[CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY] = sConfig.GetBoolDefault("SaveRespawnTimeImmediately",true); 
    724724    m_configs[CONFIG_WEATHER] = sConfig.GetBoolDefault("ActivateWeather",true); 
    725725 
     
    24562456    SendServerMessage(msgid); 
    24572457 
    2458     DEBUG_LOG("Server %s cancelled.",(m_ShutdownMask & SHUTDOWN_MASK_RESTART ? "restart" : "shuttingdown")); 
     2458    DEBUG_LOG("Server %s canceled.",(m_ShutdownMask & SHUTDOWN_MASK_RESTART ? "restart" : "shuttingdown")); 
    24592459} 
    24602460 
  • trunk/src/game/World.h

    r206 r229  
    133133    CONFIG_SKILL_GAIN_WEAPON, 
    134134    CONFIG_MAX_OVERSPEED_PINGS, 
    135     CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY, 
     135    CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY, 
    136136    CONFIG_WEATHER, 
    137137    CONFIG_EXPANSION, 
  • trunk/src/game/WorldSession.cpp

    r181 r229  
    486486void WorldSession::Handle_EarlyProccess( WorldPacket& recvPacket ) 
    487487{ 
    488     sLog.outError( "SESSION: received opcode %s (0x%.4X) that must be proccessed in WorldSocket::OnRead", 
     488    sLog.outError( "SESSION: received opcode %s (0x%.4X) that must be processed in WorldSocket::OnRead", 
    489489        LookupOpcodeName(recvPacket.GetOpcode()), 
    490490        recvPacket.GetOpcode()); 
  • trunk/src/game/WorldSocket.cpp

    r181 r229  
    264264                (errno == EAGAIN)) 
    265265            { 
    266                 return Update (); // interesting line ,isnt it ? 
     266                return Update (); // interesting line ,isn't it ? 
    267267            } 
    268268 
     
    470470            if (m_Header.space () > 0) 
    471471            { 
    472                 //couldnt recieve the whole header this time 
     472                //couldn't recieve the whole header this time 
    473473                ACE_ASSERT (message_block.length () == 0); 
    474474                errno = EWOULDBLOCK; 
     
    504504            if (m_RecvPct.space () > 0) 
    505505            { 
    506                 //couldnt recieve the whole data this time 
     506                //couldn't recieve the whole data this time 
    507507                ACE_ASSERT (message_block.length () == 0); 
    508508                errno = EWOULDBLOCK; 
  • trunk/src/game/WorldSocketMgr.cpp

    r149 r229  
    166166                while (!m_Reactor->reactor_event_loop_done ()) 
    167167                { 
    168                         // dont be too smart to move this outside the loop  
     168                        // Don't be too smart to move this outside the loop  
    169169                        // the run_reactor_event_loop will modify interval 
    170170                        ACE_Time_Value interval (0, 10000); 
  • trunk/src/shared/Database/DBCStores.cpp

    r102 r229  
    330330    LoadDBC(availableDbcLocales,bar,bad_dbc_files,sTalentTabStore,           dbcPath,"TalentTab.dbc"); 
    331331 
    332     // preper fast data access to bit pos of talent ranks for use at inspecting 
     332    // prepare fast data access to bit pos of talent ranks for use at inspecting 
    333333    { 
    334334        // fill table by amount of talent ranks and fill sTalentTabBitSizeInInspect