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

[svn] Fix hunter's trap (let original caster summon dynamic object).
Fix black temple boss 1's hurl spine.

Original author: megamage
Date: 2008-11-06 12:24:56-06:00

Files:
1 modified

Legend:

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

    r178 r180  
    26342634{ 
    26352635    float radius = GetSpellRadius(sSpellRadiusStore.LookupEntry(m_spellInfo->EffectRadiusIndex[i])); 
    2636  
    2637     if(Player* modOwner = m_caster->GetSpellModOwner()) 
     2636    Unit *caster = m_originalCasterGUID ? m_originalCaster : m_caster; 
     2637 
     2638    if(Player* modOwner = caster->GetSpellModOwner()) 
    26382639        modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_RADIUS, radius); 
    26392640 
    26402641    int32 duration = GetSpellDuration(m_spellInfo); 
    26412642    DynamicObject* dynObj = new DynamicObject; 
    2642     if(!dynObj->Create(objmgr.GenerateLowGuid(HIGHGUID_DYNAMICOBJECT), m_caster, m_spellInfo->Id, i, m_targets.m_destX, m_targets.m_destY, m_targets.m_destZ, duration, radius)) 
     2643    if(!dynObj->Create(objmgr.GenerateLowGuid(HIGHGUID_DYNAMICOBJECT), caster, m_spellInfo->Id, i, m_targets.m_destX, m_targets.m_destY, m_targets.m_destZ, duration, radius)) 
    26432644    { 
    26442645        delete dynObj; 
     
    26482649    dynObj->SetUInt32Value(GAMEOBJECT_DISPLAYID, 368003); 
    26492650    dynObj->SetUInt32Value(DYNAMICOBJECT_BYTES, 0x01eeeeee); 
    2650     m_caster->AddDynObject(dynObj); 
     2651    caster->AddDynObject(dynObj); 
    26512652    MapManager::Instance().GetMap(dynObj->GetMapId(), dynObj)->Add(dynObj); 
    26522653}