Core/SAI: Fix SMART_EVENT_WAYPOINT_START not being called at every waypoint checking wrong path id parameter
Port From (https://github.com/TrinityCore/TrinityCore/commit/c2d2df96dbe8e31e27283f73bad576ab42a3d579)
This commit is contained in:
@@ -334,12 +334,7 @@ namespace Game.AI
|
||||
if (AIInfo.cooldown.TotalMilliseconds < spellInfo.RecoveryTime)
|
||||
AIInfo.cooldown = TimeSpan.FromMilliseconds(spellInfo.RecoveryTime);
|
||||
|
||||
if (spellInfo.GetMaxRange(false) == 0)
|
||||
{
|
||||
if (AIInfo.target < AITarget.Self)
|
||||
AIInfo.target = AITarget.Self;
|
||||
}
|
||||
else
|
||||
if (spellInfo.GetMaxRange(false) != 0)
|
||||
{
|
||||
foreach (var spellEffectInfo in spellInfo.GetEffects())
|
||||
{
|
||||
@@ -370,6 +365,7 @@ namespace Game.AI
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AIInfo.realCooldown = TimeSpan.FromMilliseconds(spellInfo.RecoveryTime + spellInfo.StartRecoveryTime);
|
||||
AIInfo.maxRange = spellInfo.GetMaxRange(false) * 3 / 4;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user