Core/Spells: CastSpell Cleanup
Port From (https://github.com/TrinityCore/TrinityCore/commit/)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user