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

[svn] Remove a hack to try to fix "pet attack self" bug. Warning: this change may bring some unexpected bug.

Original author: megamage
Date: 2008-11-14 14:43:54-06:00

Files:
1 modified

Legend:

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

    r226 r228  
    178178        //m_destY = caster->GetPositionY(); 
    179179        //m_destZ = caster->GetPositionZ(); 
    180         m_unitTarget = caster; 
    181         m_unitTargetGUID = caster->GetGUID(); 
     180        //m_unitTarget = caster; 
     181        //m_unitTargetGUID = caster->GetGUID(); 
    182182        return true; 
    183183    } 
     
    462462                case SPELL_EFFECT_LEARN_SPELL: // 0 
    463463                case SPELL_EFFECT_TRADE_SKILL: // 0 or 1 
     464                case SPELL_EFFECT_PROFICIENCY: // 0 
    464465                    tmpUnitMap.push_back(m_caster); 
    465466                    break; 
     
    555556                case SPELL_EFFECT_CREATE_ITEM: 
    556557                case SPELL_EFFECT_TRIGGER_SPELL: 
    557                 case SPELL_EFFECT_TRIGGER_MISSILE: 
     558                //case SPELL_EFFECT_TRIGGER_MISSILE: ?? 
    558559                case SPELL_EFFECT_SKILL_STEP: 
    559                 case SPELL_EFFECT_PROFICIENCY: 
    560560                case SPELL_EFFECT_SELF_RESURRECT: 
    561561                case SPELL_EFFECT_REPUTATION: 
    562562                    if(m_targets.getUnitTarget()) 
    563563                        tmpUnitMap.push_back(m_targets.getUnitTarget()); 
     564                    else 
     565                        tmpUnitMap.push_back(m_caster); 
    564566                    break; 
    565567                case SPELL_EFFECT_SUMMON_PLAYER: