Changeset 114 for trunk

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

[svn] Fix a bug that hunter cannot summon traps.
Fix a bug that debuff AOE affect caster.
Change target 8 from entry AOE to enemy AOE until find out its real effect.

Original author: megamage
Date: 2008-10-26 18:58:41-05:00

Files:
1 modified

Legend:

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

    r110 r114  
    555555                case SPELL_EFFECT_SUMMON_DEMON: 
    556556                case SPELL_EFFECT_SKILL: 
     557                case SPELL_EFFECT_SUMMON_OBJECT_SLOT1: 
     558                case SPELL_EFFECT_SUMMON_OBJECT_SLOT2: 
     559                case SPELL_EFFECT_SUMMON_OBJECT_SLOT3: 
     560                case SPELL_EFFECT_SUMMON_OBJECT_SLOT4: 
    557561                    tmpUnitMap.push_back(m_caster); 
    558562                    break; 
     
    577581                            break; 
    578582                        default:                            // apply to target in other case 
    579                             if(m_targets.getUnitTarget()) 
    580                                 tmpUnitMap.push_back(m_targets.getUnitTarget()); 
    581583                            break; 
    582584                    } 
     
    13801382 
    13811383        // area targets 
     1384                case TARGET_AREAEFFECT_CUSTOM: 
    13821385        case TARGET_ALL_ENEMY_IN_AREA_INSTANT: 
    13831386        { 
     
    13961399            SearchAreaTarget(TagUnitMap, radius, PUSH_DEST_CENTER, SPELL_TARGETS_FRIENDLY); 
    13971400        }break; 
    1398         case TARGET_AREAEFFECT_CUSTOM: 
    1399             m_targets.m_targetMask |= TARGET_FLAG_DEST_LOCATION; 
     1401        //case TARGET_AREAEFFECT_CUSTOM: 
     1402        //    m_targets.m_targetMask |= TARGET_FLAG_DEST_LOCATION; 
    14001403        case TARGET_UNIT_AREA_ENTRY: 
    14011404        {