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