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

[svn] * Implement honor rewards from quests - Source Mangos

Original author: KingPin?
Date: 2008-10-22 07:02:05-05:00

Files:
1 modified

Legend:

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

    r74 r96  
    19531953            case 43873:                                     // Headless Horseman Laugh 
    19541954                if(caster->GetTypeId() == TYPEID_PLAYER) 
    1955                 { 
    19561955                    ((Player*)caster)->SendPlaySound(11965, false); 
    1957                 } 
    19581956                return; 
    19591957            case 46354:                                     // Blood Elf Illusion 
     
    25072505        // remove other shapeshift before applying a new one 
    25082506        if(m_target->m_ShapeShiftFormSpellId) 
    2509         { 
    25102507            m_target->RemoveAurasDueToSpell(m_target->m_ShapeShiftFormSpellId,this); 
    2511         } 
    25122508 
    25132509        m_target->SetByteValue(UNIT_FIELD_BYTES_2, 3, form); 
    25142510 
    25152511        if(modelid > 0) 
    2516         { 
    25172512            m_target->SetDisplayId(modelid); 
    2518         } 
    25192513 
    25202514        if(PowerType != POWER_MANA) 
     
    25462540                        m_target->SetPower(POWER_ENERGY,0); 
    25472541                        if(urand(1,100) <= FurorChance) 
    2548                         { 
    25492542                            m_target->CastSpell(m_target,17099,true,NULL,this); 
    2550                         } 
    25512543                    } 
    25522544                    else 
     
    25542546                        m_target->SetPower(POWER_RAGE,0); 
    25552547                        if(urand(1,100) <= FurorChance) 
    2556                         { 
    25572548                            m_target->CastSpell(m_target,17057,true,NULL,this); 
    2558                         } 
    25592549                    } 
    25602550                    break; 
     
    29482938 
    29492939        if(m_target->GetTypeId() == TYPEID_PLAYER) 
    2950         { 
    29512940            ((Player*)m_target)->setFactionForRace(m_target->getRace()); 
    2952         } 
     2941 
    29532942        else if(m_target->GetTypeId() == TYPEID_UNIT) 
    29542943        { 
     
    30573046 
    30583047            if(m_target->GetTypeId() == TYPEID_PLAYER) 
    3059             { 
    30603048                ((Player*)m_target)->setFactionForRace(m_target->getRace()); 
    3061             } 
    30623049            else 
    30633050            { 
     
    36433630 
    36443631    if(apply) 
    3645     { 
    36463632        m_target->TauntApply(caster); 
    3647     } 
    36483633    else 
    36493634    { 
     
    43174302        //pets only have base armor 
    43184303        if(((Creature*)m_target)->isPet() && (m_modifier.m_miscvalue & SPELL_SCHOOL_MASK_NORMAL)) 
    4319         { 
    43204304            m_target->HandleStatModifier(UNIT_MOD_ARMOR, BASE_PCT, float(m_modifier.m_amount), apply); 
    4321         } 
    43224305    } 
    43234306    else 
     
    43264309        { 
    43274310            if(m_modifier.m_miscvalue & int32(1<<x)) 
    4328             { 
    43294311                m_target->HandleStatModifier(UnitMods(UNIT_MOD_RESISTANCE_START + x), BASE_PCT, float(m_modifier.m_amount), apply); 
    4330             } 
    43314312        } 
    43324313    } 
     
    44064387    { 
    44074388        if(m_modifier.m_miscvalue == i || m_modifier.m_miscvalue == -1) 
    4408         { 
    44094389            m_target->HandleStatModifier(UnitMods(UNIT_MOD_STAT_START + i), BASE_PCT, float(m_modifier.m_amount), apply); 
    4410         } 
    44114390    } 
    44124391} 
     
    53235302    CreatureInfo const * ci = objmgr.GetCreatureTemplate(m_target->GetEntry()); 
    53245303    if(ci && ci->type == CREATURE_TYPE_BEAST) 
    5325     { 
    53265304        m_target->ApplyModUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_SPECIALINFO, apply); 
    5327     } 
    53285305} 
    53295306