aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-26 22:06:27 -0500
committermegamage <none@none>2009-05-26 22:06:27 -0500
commit0328a3c2120fa32aab6cf95d7139995d9a21dbd5 (patch)
tree84e86e1daf6d7b4ea615126125e39e1e54174027 /src
parent9624f6e09975100e18b01adc8c1dd215b5bd445e (diff)
*Fix broken dk start zone teleporter.
*Use caster as source of areaaura when source is NULL. --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index e66c33ea49b..cc1745e94dc 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -583,6 +583,8 @@ AuraEffect* CreateAuraEffect(Aura * parentAura, uint32 effIndex, int32 *currentB
assert(parentAura);
if (IsAreaAuraEffect(parentAura->GetSpellProto()->Effect[effIndex]))
{
+ if(!source)
+ source = caster;
//TODO: determine source here
if(source && source->isType(TYPEMASK_UNIT))
return new AreaAuraEffect(parentAura, effIndex, currentBasePoints, caster, castItem, (Unit*)source);