/// <summary> /// Checks whether this NPC is of the given type /// </summary> public bool CheckCreatureType(TargetCreatureMask mask) { var type = Entry.Type; return mask.HasFlag((TargetCreatureMask) (1 << ((int) type - 1))); }
/// <summary> /// Checks whether this NPC is of the given type /// </summary> public bool CheckCreatureType(TargetCreatureMask mask) { var type = Entry.Type; return (mask & (TargetCreatureMask)(1 << ((int)type - 1))) != 0; }