*Set target guid as original caster guid for GO casts.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-13 14:01:10 +02:00
parent 2c1f850968
commit f874ca629e
2 changed files with 4 additions and 2 deletions

View File

@@ -1393,7 +1393,9 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
else
{
trigger->setFaction(14);
trigger->CastSpell(target, spellInfo, true);
// Set owner guid for target if no owner avalible - needed by trigger auras
// - trigger gets despawned and there's no caster avalible (see AuraEffect::TriggerSpell())
trigger->CastSpell(target, spellInfo, true, 0, 0, target->GetGUID());
}
//trigger->setDeathState(JUST_DIED);
//trigger->RemoveCorpse();

View File

@@ -1739,7 +1739,7 @@ void AuraEffect::TriggerSpell()
case 23493:
{
int32 heal = caster->GetMaxHealth() / 10;
caster->DealHeal(caster, heal, auraSpellInfo);
caster->DealHeal(m_target, heal, auraSpellInfo);
int32 mana = caster->GetMaxPower(POWER_MANA);
if (mana)