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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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