*Fix broken dk start zone teleporter.

*Use caster as source of areaaura when source is NULL.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-26 22:06:27 -05:00
parent 9624f6e099
commit 0328a3c212
+2
View File
@@ -583,6 +583,8 @@ AuraEffect* CreateAuraEffect(Aura * parentAura, uint32 effIndex, int32 *currentB
assert(parentAura); assert(parentAura);
if (IsAreaAuraEffect(parentAura->GetSpellProto()->Effect[effIndex])) if (IsAreaAuraEffect(parentAura->GetSpellProto()->Effect[effIndex]))
{ {
if(!source)
source = caster;
//TODO: determine source here //TODO: determine source here
if(source && source->isType(TYPEMASK_UNIT)) if(source && source->isType(TYPEMASK_UNIT))
return new AreaAuraEffect(parentAura, effIndex, currentBasePoints, caster, castItem, (Unit*)source); return new AreaAuraEffect(parentAura, effIndex, currentBasePoints, caster, castItem, (Unit*)source);