Changeset 229 for trunk/src/game/SpellEffects.cpp
- Timestamp:
- 11/19/08 13:48:34 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellEffects.cpp
r227 r229 810 810 case 13567: // Dummy Trigger 811 811 { 812 // can be used for different aura trigg reing, so select by aura812 // can be used for different aura triggering, so select by aura 813 813 if(!m_triggeredByAuraSpell || !unitTarget) 814 814 return; … … 1353 1353 case 25461: spellid = 25460; break; // Rank 7 1354 1354 default: 1355 sLog.outError("Spell::EffectDummy: Spell 28598 triggered by unhand eled spell %u",m_triggeredByAuraSpell->Id);1355 sLog.outError("Spell::EffectDummy: Spell 28598 triggered by unhandled spell %u",m_triggeredByAuraSpell->Id); 1356 1356 return; 1357 1357 } … … 2666 2666 2667 2667 // Some level depends spells 2668 int multipl er = 0;2668 int multiplier = 0; 2669 2669 int level_diff = 0; 2670 2670 switch (m_spellInfo->Id) … … 2673 2673 case 9512: 2674 2674 level_diff = m_caster->getLevel() - 40; 2675 multipl er = 2;2675 multiplier = 2; 2676 2676 break; 2677 2677 // Blood Fury 2678 2678 case 24571: 2679 2679 level_diff = m_caster->getLevel() - 60; 2680 multipl er = 10;2680 multiplier = 10; 2681 2681 break; 2682 2682 // Burst of Energy 2683 2683 case 24532: 2684 2684 level_diff = m_caster->getLevel() - 60; 2685 multipl er = 4;2685 multiplier = 4; 2686 2686 break; 2687 2687 default: … … 2690 2690 2691 2691 if (level_diff > 0) 2692 damage -= multipl er * level_diff;2692 damage -= multiplier * level_diff; 2693 2693 2694 2694 if(damage < 0) … … 3293 3293 return; 3294 3294 3295 // Fill possible dispel llist3295 // Fill possible dispel list 3296 3296 std::vector <Aura *> dispel_list; 3297 3297 … … 3328 3328 std::list < uint32 > fail_list; // spell_id 3329 3329 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) 3331 3331 for (int32 count=0; count < damage && list_size > 0; ++count) 3332 3332 { … … 3352 3352 for (std::vector<Aura *>::iterator j = dispel_list.begin(); j != dispel_list.end(); ) 3353 3353 { 3354 Aura *dispel ed = *j;3355 if (dispel ed->GetId() == aur->GetId() && dispeled->GetCasterGUID() == aur->GetCasterGUID())3354 Aura *dispelled = *j; 3355 if (dispelled->GetId() == aur->GetId() && dispelled->GetCasterGUID() == aur->GetCasterGUID()) 3356 3356 { 3357 3357 j = dispel_list.erase(j); … … 3369 3369 data.append(unitTarget->GetPackGUID()); // Victim GUID 3370 3370 data.append(m_caster->GetPackGUID()); // Caster GUID 3371 data << uint32(m_spellInfo->Id); // Dispell spell id3371 data << uint32(m_spellInfo->Id); // dispel spell id 3372 3372 data << uint8(0); // not used 3373 3373 data << uint32(count); // count … … 3376 3376 SpellEntry const* spellInfo = sSpellStore.LookupEntry(j->first); 3377 3377 data << uint32(spellInfo->Id); // Spell Id 3378 data << uint8(0); // 0 - dispel ed !=0 cleansed3378 data << uint8(0); // 0 - dispelled !=0 cleansed 3379 3379 unitTarget->RemoveAurasDueToSpellByDispel(spellInfo->Id, j->second, m_caster); 3380 3380 } … … 3409 3409 data << uint64(m_caster->GetGUID()); // Caster GUID 3410 3410 data << uint64(unitTarget->GetGUID()); // Victim GUID 3411 data << uint32(m_spellInfo->Id); // Dispell spell id3411 data << uint32(m_spellInfo->Id); // dispel spell id 3412 3412 for (std::list< uint32 >::iterator j = fail_list.begin(); j != fail_list.end(); ++j) 3413 3413 data << uint32(*j); // Spell Id … … 6225 6225 std::list < std::pair<uint32,uint64> > success_list; 6226 6226 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) 6228 6228 for (int32 count=0; count < damage && list_size > 0; ++count) 6229 6229 { … … 6254 6254 data.append(unitTarget->GetPackGUID()); // Victim GUID 6255 6255 data.append(m_caster->GetPackGUID()); // Caster GUID 6256 data << uint32(m_spellInfo->Id); // Dispell spell id6256 data << uint32(m_spellInfo->Id); // dispel spell id 6257 6257 data << uint8(0); // not used 6258 6258 data << uint32(count); // count