示例#1
0
 public override void OnCombatantChange()
 {
     if (Combatant != null && Combatant.Alive && m_shepherd != null && m_shepherd.Combatant == null)
     {
         m_shepherd.Combatant = Combatant;
         m_shepherd.Say("Hey, my dog! Leave it alone!");
     }
 }
示例#2
0
        public override void OnCombatantChange()
        {
            if (Combatant != null && Combatant.Alive && m_shepherd != null && m_shepherd.Combatant == null)
            {
                m_shepherd.Combatant = Combatant;
                m_shepherd.Say("Hey, leave my sheep alone!");

                if (m_dog != null && m_dog.Combatant == null)
                {
                    m_dog.Combatant = Combatant;
                }
            }
        }