protected void AddPhrase(string phrase) { if (this.NPC == null) throw new InvalidOperationException("NPC's race has to be set first."); if (this.NPC.AI != null) this.NPC.AI.Phrases.Add(phrase); }