Show
Ignore:
Timestamp:
11/22/08 00:36:22 (17 years ago)
Author:
yumileroy
Message:

Merged commit 269 (5f0e38da128a).

Original author: gvcoman
Date: 2008-11-21 14:34:05-05:00

Files:
1 modified

Legend:

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

    r274 r279  
    170170    &Aura::HandleNoImmediateEffect,                         //113 SPELL_AURA_MOD_RANGED_DAMAGE_TAKEN implemented in Unit::MeleeDamageBonus 
    171171    &Aura::HandleNoImmediateEffect,                         //114 SPELL_AURA_MOD_RANGED_DAMAGE_TAKEN_PCT implemented in Unit::MeleeDamageBonus 
    172     &Aura::HandleAuraHealing,                               //115 SPELL_AURA_MOD_HEALING 
     172    &Aura::HandleNoImmediateEffect,                         //115 SPELL_AURA_MOD_HEALING                 implemented in Unit::SpellBaseHealingBonusForVictim 
    173173    &Aura::HandleNoImmediateEffect,                         //116 SPELL_AURA_MOD_REGEN_DURING_COMBAT 
    174174    &Aura::HandleNoImmediateEffect,                         //117 SPELL_AURA_MOD_MECHANIC_RESISTANCE     implemented in Unit::MagicSpellHitResult 
    175     &Aura::HandleAuraHealingPct,                            //118 SPELL_AURA_MOD_HEALING_PCT 
     175    &Aura::HandleNoImmediateEffect,                         //118 SPELL_AURA_MOD_HEALING_PCT             implemented in Unit::SpellHealingBonus 
    176176    &Aura::HandleUnused,                                    //119 SPELL_AURA_SHARE_PET_TRACKING useless 
    177177    &Aura::HandleAuraUntrackable,                           //120 SPELL_AURA_UNTRACKABLE 
     
    191191    &Aura::HandleAuraModRegenInterrupt,                     //134 SPELL_AURA_MOD_MANA_REGEN_INTERRUPT 
    192192    &Aura::HandleModHealingDone,                            //135 SPELL_AURA_MOD_HEALING_DONE 
    193     &Aura::HandleAuraHealingPct,                            //136 SPELL_AURA_MOD_HEALING_DONE_PERCENT   implemented in Unit::SpellHealingBonus 
     193    &Aura::HandleNoImmediateEffect,                         //136 SPELL_AURA_MOD_HEALING_DONE_PERCENT   implemented in Unit::SpellHealingBonus 
    194194    &Aura::HandleModTotalPercentStat,                       //137 SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE 
    195195    &Aura::HandleHaste,                                     //138 SPELL_AURA_MOD_HASTE 
     
    220220    &Aura::HandleNoImmediateEffect,                         //163 SPELL_AURA_MOD_CRIT_DAMAGE_BONUS_MELEE 
    221221    &Aura::HandleUnused,                                    //164 useless, only one test spell 
    222     &Aura::HandleAuraAttackPowerAttacker,                   //165 SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS implemented in Unit::MeleeDamageBonus 
     222    &Aura::HandleNoImmediateEffect,                         //165 SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS implemented in Unit::MeleeDamageBonus 
    223223    &Aura::HandleAuraModAttackPowerPercent,                 //166 SPELL_AURA_MOD_ATTACK_POWER_PCT 
    224224    &Aura::HandleAuraModRangedAttackPowerPercent,           //167 SPELL_AURA_MOD_RANGED_ATTACK_POWER_PCT 
     
    19991999        } 
    20002000 
     2001        // Waiting to Resurrect 
     2002        if(GetId()==2584) 
     2003        { 
     2004            // Waiting to resurrect spell cancel, we must remove player from resurrect queue 
     2005            if(m_target->GetTypeId() == TYPEID_PLAYER) 
     2006                if(BattleGround *bg = ((Player*)m_target)->GetBattleGround()) 
     2007                    bg->RemovePlayerFromResurrectQueue(m_target->GetGUID()); 
     2008            return; 
     2009        } 
     2010 
    20012011        // Dark Fiend 
    20022012        if(GetId()==45934) 
     
    22872297void Aura::HandleAuraMounted(bool apply, bool Real) 
    22882298{ 
     2299    // only at real add/remove aura 
     2300    if(!Real) 
     2301        return; 
     2302 
    22892303    if(apply) 
    22902304    { 
     
    26862700            else 
    26872701            { 
    2688                 if (uint32 modelid = ci->GetRandomValidModelId()) m_target->SetDisplayId(modelid); 
     2702                                                            // Will use the default model here 
     2703                if (uint32 modelid = ci->GetRandomValidModelId()) 
     2704                    m_target->SetDisplayId(modelid); 
    26892705 
    26902706                // Dragonmaw Illusion (set mount model also) 
     
    35823598/***                  MODIFY SPEED                     ***/ 
    35833599/*********************************************************/ 
    3584 void Aura::HandleAuraModIncreaseSpeed(bool apply, bool Real) 
     3600void Aura::HandleAuraModIncreaseSpeed(bool /*apply*/, bool Real) 
    35853601{ 
    35863602    // all applied/removed only at real aura add/remove 
     
    35913607} 
    35923608 
    3593 void Aura::HandleAuraModIncreaseMountedSpeed(bool apply, bool Real) 
     3609void Aura::HandleAuraModIncreaseMountedSpeed(bool /*apply*/, bool Real) 
    35943610{ 
    35953611    // all applied/removed only at real aura add/remove 
     
    36303646} 
    36313647 
    3632 void Aura::HandleAuraModIncreaseSwimSpeed(bool apply, bool Real) 
     3648void Aura::HandleAuraModIncreaseSwimSpeed(bool /*apply*/, bool Real) 
    36333649{ 
    36343650    // all applied/removed only at real aura add/remove 
     
    36393655} 
    36403656 
    3641 void Aura::HandleAuraModDecreaseSpeed(bool apply, bool Real) 
     3657void Aura::HandleAuraModDecreaseSpeed(bool /*apply*/, bool Real) 
    36423658{ 
    36433659    // all applied/removed only at real aura add/remove 
     
    36503666} 
    36513667 
    3652 void Aura::HandleAuraModUseNormalSpeed(bool apply, bool Real) 
     3668void Aura::HandleAuraModUseNormalSpeed(bool /*apply*/, bool Real) 
    36533669{ 
    36543670    // all applied/removed only at real aura add/remove 
     
    43354351} 
    43364352 
    4337 void Aura::HandleModSpellDamagePercentFromStat(bool apply, bool Real) 
     4353void Aura::HandleModSpellDamagePercentFromStat(bool /*apply*/, bool Real) 
    43384354{ 
    43394355    if(m_target->GetTypeId() != TYPEID_PLAYER) 
     
    43464362} 
    43474363 
    4348 void Aura::HandleModSpellHealingPercentFromStat(bool apply, bool Real) 
     4364void Aura::HandleModSpellHealingPercentFromStat(bool /*apply*/, bool Real) 
    43494365{ 
    43504366    if(m_target->GetTypeId() != TYPEID_PLAYER) 
     
    43644380} 
    43654381 
    4366 void Aura::HandleModSpellDamagePercentFromAttackPower(bool apply, bool Real) 
     4382void Aura::HandleModSpellDamagePercentFromAttackPower(bool /*apply*/, bool Real) 
    43674383{ 
    43684384    if(m_target->GetTypeId() != TYPEID_PLAYER) 
     
    43754391} 
    43764392 
    4377 void Aura::HandleModSpellHealingPercentFromAttackPower(bool apply, bool Real) 
     4393void Aura::HandleModSpellHealingPercentFromAttackPower(bool /*apply*/, bool Real) 
    43784394{ 
    43794395    if(m_target->GetTypeId() != TYPEID_PLAYER) 
     
    43844400} 
    43854401 
    4386 void Aura::HandleModHealingDone(bool apply, bool Real) 
     4402void Aura::HandleModHealingDone(bool /*apply*/, bool Real) 
    43874403{ 
    43884404    if(m_target->GetTypeId() != TYPEID_PLAYER) 
     
    44244440} 
    44254441 
    4426 void Aura::HandleAuraModResistenceOfStatPercent(bool apply, bool Real) 
     4442void Aura::HandleAuraModResistenceOfStatPercent(bool /*apply*/, bool Real) 
    44274443{ 
    44284444    if(m_target->GetTypeId() != TYPEID_PLAYER) 
     
    45594575} 
    45604576 
    4561 void Aura::HandleModPowerRegenPCT(bool apply, bool Real) 
     4577void Aura::HandleModPowerRegenPCT(bool /*apply*/, bool Real) 
    45624578{ 
    45634579    // spells required only Real aura add/remove 
     
    45734589} 
    45744590 
    4575 void Aura::HandleModManaRegen(bool apply, bool Real) 
     4591void Aura::HandleModManaRegen(bool /*apply*/, bool Real) 
    45764592{ 
    45774593    // spells required only Real aura add/remove 
     
    46604676/********************************/ 
    46614677 
    4662 void Aura::HandleAuraModParryPercent(bool apply, bool Real) 
     4678void Aura::HandleAuraModParryPercent(bool /*apply*/, bool Real) 
    46634679{ 
    46644680    if(m_target->GetTypeId()!=TYPEID_PLAYER) 
     
    46684684} 
    46694685 
    4670 void Aura::HandleAuraModDodgePercent(bool apply, bool Real) 
     4686void Aura::HandleAuraModDodgePercent(bool /*apply*/, bool Real) 
    46714687{ 
    46724688    if(m_target->GetTypeId()!=TYPEID_PLAYER) 
     
    46774693} 
    46784694 
    4679 void Aura::HandleAuraModBlockPercent(bool apply, bool Real) 
     4695void Aura::HandleAuraModBlockPercent(bool /*apply*/, bool Real) 
    46804696{ 
    46814697    if(m_target->GetTypeId()!=TYPEID_PLAYER) 
     
    46864702} 
    46874703 
    4688 void Aura::HandleAuraModRegenInterrupt(bool apply, bool Real) 
     4704void Aura::HandleAuraModRegenInterrupt(bool /*apply*/, bool Real) 
    46894705{ 
    46904706    // spells required only Real aura add/remove 
     
    47544770} 
    47554771 
    4756 void Aura::HandleModSpellCritChanceShool(bool apply, bool Real) 
     4772void Aura::HandleModSpellCritChanceShool(bool /*apply*/, bool Real) 
    47574773{ 
    47584774    // spells required only Real aura add/remove 
     
    48344850 
    48354851    m_target->HandleStatModifier(UNIT_MOD_ATTACK_POWER_RANGED, TOTAL_VALUE, float(m_modifier.m_amount), apply); 
    4836 } 
    4837  
    4838 void Aura::HandleAuraAttackPowerAttacker(bool apply, bool Real) 
    4839 { 
    4840     // spells required only Real aura add/remove 
    4841     if(!Real) 
    4842         return; 
    4843     Unit *caster = GetCaster(); 
    4844  
    4845     if (!caster) 
    4846         return; 
    4847  
    4848     // Hunter's Mark 
    4849     if (m_spellProto->SpellFamilyName == SPELLFAMILY_HUNTER && m_spellProto->SpellFamilyFlags & 0x0000000000000400LL) 
    4850     { 
    4851         // Check Improved Hunter's Mark bonus on caster 
    4852         Unit::AuraList const& mOverrideClassScript = caster->GetAurasByType(SPELL_AURA_OVERRIDE_CLASS_SCRIPTS); 
    4853         for(Unit::AuraList::const_iterator i = mOverrideClassScript.begin(); i != mOverrideClassScript.end(); ++i) 
    4854         { 
    4855             Modifier* mod = (*i)->GetModifier(); 
    4856             // mproved Hunter's Mark script from 5236 to 5240 
    4857             if (mod->m_miscvalue >= 5236 && mod->m_miscvalue <= 5240) 
    4858             { 
    4859                 // Get amount of ranged bonus for this spell.. 
    4860                 int32 ranged_bonus = caster->CalculateSpellDamage(m_spellProto, 1, m_spellProto->EffectBasePoints[1], m_target); 
    4861                 // Set melee attack power bonus % from ranged depends from Improved mask aura 
    4862                 m_modifier.m_amount = mod->m_amount * ranged_bonus / 100; 
    4863                 m_currentBasePoints = m_modifier.m_amount; 
    4864                 break; 
    4865             } 
    4866         } 
    4867         return; 
    4868     } 
    48694852} 
    48704853 
     
    53165299} 
    53175300 
    5318 void Aura::HandleAuraModExpertise(bool apply, bool Real) 
     5301void Aura::HandleAuraModExpertise(bool /*apply*/, bool Real) 
    53195302{ 
    53205303    if(m_target->GetTypeId() != TYPEID_PLAYER) 
     
    53395322    if (m_target->GetTypeId() == TYPEID_PLAYER && (m_modifier.m_miscvalue & SPELL_SCHOOL_MASK_SPELL)==SPELL_SCHOOL_MASK_SPELL) 
    53405323        m_target->ApplyModInt32Value(PLAYER_FIELD_MOD_TARGET_RESISTANCE,m_modifier.m_amount, apply); 
    5341 } 
    5342  
    5343 //HandleNoImmediateEffect auras implementation to support new stat system 
    5344 void Aura::HandleAuraHealing(bool apply, bool Real) 
    5345 { 
    5346     //m_target->HandleStatModifier(UNIT_MOD_HEALING, TOTAL_VALUE, float(m_modifier.m_amount), apply); 
    5347 } 
    5348  
    5349 void Aura::HandleAuraHealingPct(bool apply, bool Real) 
    5350 { 
    5351     //m_target->HandleStatModifier(UNIT_MOD_HEALING, TOTAL_PCT, float(m_modifier.m_amount), apply); 
    53525324} 
    53535325