I have been trying to figure this out but still I can PK my friends, and guild mate when I turn to Team PK Mode only in my team member will not be Pke'd. can some one try to fix this one please and thanks in advance.
public bool PKAble(PKMode PK, Character C)
{
if (PK == PKMode.PK)
return true;
else if (PK == PKMode.Capture)
return BlueName;
else if (PK == PKMode.Team)
{
if (MyTeam != null)
{
return !MyTeam.Members.Contains(C);
}
else if (MyGuild != null)
{
return !MyGuild.Members.Contains(C);
}
else if (Friends != null)
{
return !Friends.Contains(C);
}
else return true;
}
return false;
}