Core/Spells: CastSpell Cleanup

Port From (https://github.com/TrinityCore/TrinityCore/commit/)
This commit is contained in:
hondacrx
2021-04-18 18:42:11 -04:00
parent b1ea7212f3
commit d0faa12ef6
45 changed files with 775 additions and 632 deletions
+2 -2
View File
@@ -74,8 +74,8 @@ namespace Scripts.Pets
_victimGUID = player.GetGUID();
DoCast(player, SpellIds.FeelingFroggy, true);
DoCast(me, SpellIds.SeductionVisual, true);
DoCast(player, SpellIds.FeelingFroggy, new Game.Spells.CastSpellExtraArgs(true));
DoCast(me, SpellIds.SeductionVisual, new Game.Spells.CastSpellExtraArgs(true));
me.GetMotionMaster().MoveFollow(player, 0.0f, 0.0f);
}
+2 -1
View File
@@ -19,6 +19,7 @@ using Framework.Constants;
using Game.AI;
using Game.Entities;
using Game.Scripting;
using Game.Spells;
namespace Scripts.Pets
{
@@ -68,7 +69,7 @@ namespace Scripts.Pets
}
if (!_isViper)
DoCast(me, SpellIds.DeadlyPoisonPassive, true);
DoCast(me, SpellIds.DeadlyPoisonPassive, new CastSpellExtraArgs(true));
}
// Redefined for random target selection:
+1 -1
View File
@@ -36,7 +36,7 @@ namespace Scripts.Pets
{
public npc_pet_pri_lightwell(Creature creature) : base(creature)
{
DoCast(creature, SpellIds.LightWellCharges, false);
DoCast(creature, SpellIds.LightWellCharges, new Game.Spells.CastSpellExtraArgs(false));
}
public override void EnterEvadeMode(EvadeReason why)