Esempio n. 1
0
 protected ABrain(Unit unit)
 {
     _unit  = unit;
     Combat = (CombatInterface_Npc)unit.CbtInterface;
     AI     = unit.AiInterface;
     _pet   = unit as Pet;
 }
Esempio n. 2
0
        public bool Attack(Object obj, object args)
        {
            CombatInterface_Npc cb = CbtInterface as CombatInterface_Npc;

            if (cb == null)
            {
                Log.Error("Pet", "Missing CombatInterface in Attack()");
                return(false);
            }

            Unit attacker = obj as Unit;

            if (attacker == null)
            {
                Log.Error("Pet", "Object is NULL in Attack()");
                return(false);
            }

            if (AIMode != 3 && cb.CurrentTarget == null)
            {
                AiInterface.ProcessCombatStart(attacker);
            }

            return(false);
        }
Esempio n. 3
0
 public Executions(Unit owner, CombatInterface_Npc combat, ABrain brain)
 {
     Owner  = owner;
     Combat = combat;
     Brain  = brain;
 }
Esempio n. 4
0
 public Conditions(Unit owner, CombatInterface_Npc combat)
 {
     Owner  = owner;
     Combat = combat;
 }