mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-18 22:19:54 -04:00
3.3.5 gameobject summoner (#23289)
* Scripts/Misc: Change IsSummonedBy(Unit*) to IsSummonedBy(WorldObject*) * Scripts/Misc: Fix build * Core/TempSummons: Rename GetSummoner() to GetSummonerUnit() * Core/TempSummons: Add support to TempSummons::GetSummoner() to return GameObject too * Fix build * Core/TempSummons: Allow GameObject to be owner of TempSummon * Core/TempSummons: Add support to SAI for GameObject owner of TempSummon * Scripts/Misc: Fix no-pch build * Core/TempSummons: Implement PR comments
This commit is contained in:
@@ -1455,7 +1455,7 @@ class spell_gen_defend : public AuraScript
|
||||
{
|
||||
if (Unit* caster = GetCaster())
|
||||
if (TempSummon* vehicle = caster->ToTempSummon())
|
||||
if (Unit* rider = vehicle->GetSummoner())
|
||||
if (Unit* rider = vehicle->GetSummonerUnit())
|
||||
rider->RemoveAurasDueToSpell(GetId());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user