Core/Spells: Corrected radius calculation

This commit is contained in:
Shauren
2012-11-26 11:11:30 +01:00
parent 5e9acb3341
commit 4dffccb93f
4 changed files with 13 additions and 8 deletions

View File

@@ -1698,7 +1698,7 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
{
trigger->setFaction(owner->getFaction());
// needed for GO casts for proper target validation checks
trigger->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, owner->GetGUID());
trigger->SetOwnerGUID(owner->GetGUID());
trigger->CastSpell(target ? target : trigger, spellInfo, true, 0, 0, owner->GetGUID());
}
else