mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
*Set target guid as original caster guid for GO casts.
--HG-- branch : trunk
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user