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

[svn] Spell target selection improvement. Remove most mangos hacks in spell target selection. (work almost done)
Merge mangos svn rev 6744.

Original author: megamage
Date: 2008-10-31 11:04:32-05:00

Files:
1 modified

Legend:

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

    r138 r139  
    50865086 
    50875087                    // Cast finish spell (triggeredByAura already not exist!) 
    5088                     CastSpell(this, 27285, true, castItem, NULL, casterGuid); 
     5088                    if(Unit* caster = GetUnit(*this, casterGuid)) 
     5089                        caster->CastSpell(this, 27285, true, castItem); 
    50895090                    return true;                            // no hidden cooldown 
    50905091                } 
     
    51085109 
    51095110                    // Cast finish spell (triggeredByAura already not exist!) 
    5110                     CastSpell(this, 32865, true, castItem, NULL, casterGuid); 
     5111                    if(Unit* caster = GetUnit(*this, casterGuid)) 
     5112                        caster->CastSpell(this, 32865, true, castItem); 
    51115113                    return true;                            // no hidden cooldown 
    51125114                }