aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-23 22:21:26 -0500
committermegamage <none@none>2009-05-23 22:21:26 -0500
commit946aa87445b4676eef8b4775426557982e863f8c (patch)
tree70b4e3d2b3c61c701ae47a2d12d8e9202cb590da /src/game/Unit.cpp
parentaf1f0fd419753e9864e55029bf11dce4fb1e85f9 (diff)
*Store aura::source for all types of aura effect.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 7c04f8e9c70..17b618cb3cd 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -13762,7 +13762,8 @@ void Unit::AddAura(uint32 spellId, Unit* target)
if (!eff_mask)
return;
- Aura *Aur = new Aura(spellInfo, eff_mask, NULL, target, this, NULL, target);
+ //TODO: we use target as source for now, but that may not be true
+ Aura *Aur = new Aura(spellInfo, eff_mask, NULL, target, target, this, NULL);
target->AddAura(Aur);
}
@@ -13787,10 +13788,10 @@ Aura * Unit::AddAuraEffect(const SpellEntry * spellInfo, uint8 effIndex, Unit* c
{
int32 amount[3];
amount[effIndex] = *basePoints;
- aur = new Aura(spellInfo, 1<<effIndex, amount, this ,caster, NULL,source);
+ aur = new Aura(spellInfo, 1<<effIndex, amount, this, source, caster, NULL);
}
else
- aur = new Aura(spellInfo, 1<<effIndex, NULL, this ,caster, NULL,source);
+ aur = new Aura(spellInfo, 1<<effIndex, NULL, this, source ,caster, NULL);
if(!AddAura(aur))
return NULL;
@@ -13959,7 +13960,7 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId)
}
m_Vehicle->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_24);
- m_Vehicle->setFaction(getFaction());
+ //m_Vehicle->setFaction(getFaction());
addUnitState(UNIT_STAT_ONVEHICLE);
//movementInfo is set in AddPassenger