there is solution on C4 retail
cause it has function "InPeaceZone"
summon can get master, if master is in peace zone, summon can just not react to "attack" command;
and wheh attacking, frequently check if master in peace zone, if so
RemoveAllAttackDesire
Add desire to follow
I am think how to do it in C1, cause I am C1 developer, not C4