Core/Spells: Removed CastSpellExtraArgs constructors accepting ObjectGuid, they would become ambiguous with future changes

Port From (https://github.com/TrinityCore/TrinityCore/commit/3af9be830d736506ed4544a922699ed0f7a7ecd4)
This commit is contained in:
hondacrx
2021-10-03 13:12:12 -04:00
parent 3c55b9e7a8
commit e1aa4334d2
8 changed files with 22 additions and 31 deletions
@@ -727,7 +727,8 @@ namespace Game.Entities
else if (target)
{
// Some traps do not have a spell but should be triggered
CastSpellExtraArgs args = new(GetOwnerGUID());
CastSpellExtraArgs args = new();
args.SetOriginalCaster(GetOwnerGUID());
if (goInfo.Trap.spell != 0)
CastSpell(target, goInfo.Trap.spell, args);
+2 -2
View File
@@ -2480,7 +2480,7 @@ namespace Game.Entities
break;
case GossipOption.Spirithealer:
if (IsDead())
source.ToCreature().CastSpell(source.ToCreature(), 17251, new CastSpellExtraArgs(GetGUID()));
source.ToCreature().CastSpell(source.ToCreature(), 17251, new CastSpellExtraArgs(TriggerCastFlags.FullMask).SetOriginalCaster(GetGUID()));
break;
case GossipOption.Questgiver:
PrepareQuestMenu(guid);
@@ -3552,7 +3552,7 @@ namespace Game.Entities
SetPower(PowerType.LunarPower, 0);
if (resurrectAura != 0)
CastSpell(this, resurrectAura, new CastSpellExtraArgs(resurrectGUID));
CastSpell(this, resurrectAura, new CastSpellExtraArgs(TriggerCastFlags.FullMask).SetOriginalCaster(resurrectGUID));
SpawnCorpseBones();
}