- ServUO Version
- Publish 57
- Ultima Expansion
- Endless Journey
So I have this in the CanBeHarmful section of BaseCreature, and it seems to work could probably be better but my pets will say they're attacking each other but do no damage. Is there a way to also cancel that command if it meets the criteria? Like set them back to follow or something?
Tried this and it didn't work:
C#:
if (target is BaseCreature && target is BaseCreature)
{
BaseCreature c = (BaseCreature)target;
BaseCreature d = (BaseCreature)target;
if (c.Controlled && d.Controlled && c.ControlMaster == d.ControlMaster)
return false;
}
Tried this and it didn't work:
C#:
if (c.Controlled && d.Controlled && c.ControlMaster == d.ControlMaster)
ControlTarget = this.ControlMaster;
ControlOrder = OrderType.Follow;
Warmode = false;
Last edited: