Core/SAI: Allow gameobjects to be targeted by spell casts

Port From (https://github.com/TrinityCore/TrinityCore/commit/22e43917abef1eea31e86c01070afbee19c0cdbc)
This commit is contained in:
Hondacrx
2024-08-04 17:09:52 -04:00
parent 65007add12
commit 44f1a733e7
2 changed files with 86 additions and 90 deletions
+3 -2
View File
@@ -870,6 +870,7 @@ namespace Game.AI
_followGuid.Clear();
_followDist = 0;
_followAngle = 0;
uint followCredit = _followCredit;
_followCredit = 0;
_followArrivedTimer = 1000;
_followArrivedEntry = 0;
@@ -885,9 +886,9 @@ namespace Game.AI
if (player != null)
{
if (_followCreditType == 0)
player.RewardPlayerAndGroupAtEvent(_followCredit, me);
player.RewardPlayerAndGroupAtEvent(followCredit, me);
else
player.GroupEventHappens(_followCredit, me);
player.GroupEventHappens(followCredit, me);
}
SetDespawnTime(5000);