protected override void OnStateEntry(Entity host, RealmTime time, ref object state) { host.ApplyConditionEffect(new ConditionEffect { Effect = effect, DurationMS = -1 }); }
protected override void OnStateExit(Entity host, RealmTime time, ref object state) { if (!perm) { host.ApplyConditionEffect(new ConditionEffect { Effect = effect, DurationMS = 0 }); } }