예제 #1
0
 public static void Register(InvulnerableEntry entry)
 {
     if (!string.IsNullOrEmpty(entry.BuffName) && !PEntries.Any(i => i.BuffName.Equals(entry.BuffName)))
     {
         PEntries.Add(entry);
     }
 }
예제 #2
0
 public static void Deregister(InvulnerableEntry entry)
 {
     if (PEntries.Any(i => i.BuffName.Equals(entry.BuffName)))
     {
         PEntries.Remove(entry);
     }
 }
예제 #3
0
 private static bool ExecuteCheckFunction(InvulnerableEntry entry, Obj_AI_Hero hero, DamageType damageType)
 {
     return(entry != null && entry.CheckFunction(hero, damageType));
 }