Core/Spells: Remade trajectory target selection
Port From (https://github.com/TrinityCore/TrinityCore/commit/3f7fe6f8a51f61083b4940eaadddc3b390f8e238)
This commit is contained in:
@@ -96,6 +96,20 @@ namespace Framework.Dynamic
|
||||
m_events.Add(e_time, Event);
|
||||
}
|
||||
|
||||
public void ModifyEventTime(BasicEvent Event, ulong newTime)
|
||||
{
|
||||
foreach (var pair in m_events)
|
||||
{
|
||||
if (pair.Value != Event)
|
||||
continue;
|
||||
|
||||
Event.m_execTime = newTime;
|
||||
m_events.Remove(pair);
|
||||
m_events.Add(newTime, Event);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong CalculateTime(ulong t_offset)
|
||||
{
|
||||
return (m_time + t_offset);
|
||||
|
||||
Reference in New Issue
Block a user