Scripts/Spells: Implemented druid eclipse system

Port From (https://github.com/TrinityCore/TrinityCore/commit/abaeb12ba3993a636d8385fe06b3a5ceb0f66f63)
This commit is contained in:
hondacrx
2021-03-29 12:49:24 -04:00
parent e8959b884e
commit 9bbc1b49f3
3 changed files with 177 additions and 1 deletions
+3 -1
View File
@@ -15,6 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Linq;
@@ -61,7 +62,6 @@ namespace Framework.Dynamic
}
}
public void KillAllEvents(bool force)
{
foreach (var pair in m_events.KeyValueList)
@@ -96,6 +96,8 @@ namespace Framework.Dynamic
m_events.Add(e_time, Event);
}
public void AddEventAtOffset(BasicEvent Event, TimeSpan offset) { AddEvent(Event, CalculateTime((ulong)offset.TotalMilliseconds)); }
public void ModifyEventTime(BasicEvent Event, ulong newTime)
{
foreach (var pair in m_events)