ModernUO/Projects/UOContent/Mobiles/BehaviorAI/MagePassive.cs
2021-09-12 23:38:56 -04:00

14 lines
379 B
C#

namespace Server.Mobiles.BehaviorAI
{
public class MagePassive : OwnerCondition
{
public MagePassive(BehaviorTree tree) : base(tree, canActivate)
{
AddChild(new Wander(tree, 2, 0.5));
}
public static bool canActivate(BehaviorTreeContext context)
{
return context.Mobile.Combatant == null;
}
}
}