Changeset 96 for trunk/src/game/SpellAuras.cpp
- Timestamp:
- 11/19/08 13:35:09 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellAuras.cpp
r74 r96 1953 1953 case 43873: // Headless Horseman Laugh 1954 1954 if(caster->GetTypeId() == TYPEID_PLAYER) 1955 {1956 1955 ((Player*)caster)->SendPlaySound(11965, false); 1957 }1958 1956 return; 1959 1957 case 46354: // Blood Elf Illusion … … 2507 2505 // remove other shapeshift before applying a new one 2508 2506 if(m_target->m_ShapeShiftFormSpellId) 2509 {2510 2507 m_target->RemoveAurasDueToSpell(m_target->m_ShapeShiftFormSpellId,this); 2511 }2512 2508 2513 2509 m_target->SetByteValue(UNIT_FIELD_BYTES_2, 3, form); 2514 2510 2515 2511 if(modelid > 0) 2516 {2517 2512 m_target->SetDisplayId(modelid); 2518 }2519 2513 2520 2514 if(PowerType != POWER_MANA) … … 2546 2540 m_target->SetPower(POWER_ENERGY,0); 2547 2541 if(urand(1,100) <= FurorChance) 2548 {2549 2542 m_target->CastSpell(m_target,17099,true,NULL,this); 2550 }2551 2543 } 2552 2544 else … … 2554 2546 m_target->SetPower(POWER_RAGE,0); 2555 2547 if(urand(1,100) <= FurorChance) 2556 {2557 2548 m_target->CastSpell(m_target,17057,true,NULL,this); 2558 }2559 2549 } 2560 2550 break; … … 2948 2938 2949 2939 if(m_target->GetTypeId() == TYPEID_PLAYER) 2950 {2951 2940 ((Player*)m_target)->setFactionForRace(m_target->getRace()); 2952 } 2941 2953 2942 else if(m_target->GetTypeId() == TYPEID_UNIT) 2954 2943 { … … 3057 3046 3058 3047 if(m_target->GetTypeId() == TYPEID_PLAYER) 3059 {3060 3048 ((Player*)m_target)->setFactionForRace(m_target->getRace()); 3061 }3062 3049 else 3063 3050 { … … 3643 3630 3644 3631 if(apply) 3645 {3646 3632 m_target->TauntApply(caster); 3647 }3648 3633 else 3649 3634 { … … 4317 4302 //pets only have base armor 4318 4303 if(((Creature*)m_target)->isPet() && (m_modifier.m_miscvalue & SPELL_SCHOOL_MASK_NORMAL)) 4319 {4320 4304 m_target->HandleStatModifier(UNIT_MOD_ARMOR, BASE_PCT, float(m_modifier.m_amount), apply); 4321 }4322 4305 } 4323 4306 else … … 4326 4309 { 4327 4310 if(m_modifier.m_miscvalue & int32(1<<x)) 4328 {4329 4311 m_target->HandleStatModifier(UnitMods(UNIT_MOD_RESISTANCE_START + x), BASE_PCT, float(m_modifier.m_amount), apply); 4330 }4331 4312 } 4332 4313 } … … 4406 4387 { 4407 4388 if(m_modifier.m_miscvalue == i || m_modifier.m_miscvalue == -1) 4408 {4409 4389 m_target->HandleStatModifier(UnitMods(UNIT_MOD_STAT_START + i), BASE_PCT, float(m_modifier.m_amount), apply); 4410 }4411 4390 } 4412 4391 } … … 5323 5302 CreatureInfo const * ci = objmgr.GetCreatureTemplate(m_target->GetEntry()); 5324 5303 if(ci && ci->type == CREATURE_TYPE_BEAST) 5325 {5326 5304 m_target->ApplyModUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_SPECIALINFO, apply); 5327 }5328 5305 } 5329 5306