public bool hasCondition(CRConditionType type) { #if SERVER return _conditions[(int)type].Count > 0; #else return _networkConditions[(int)type]; #endif }
public void RemoveAllConditionsOfType(CRConditionType type) { CRCondition[] category = _conditions[(int)type].ToArray(); foreach (CRCondition condition in category) { CREffect effect = (CREffect)condition.GetComponent<CREffect>(); if (effect) effect.Expire(CRExpirationReason.CONDITION_REMOVED); } }