diff --git a/src/entity.cpp b/src/entity.cpp index c10f9f2b8..d12b3f5f0 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -6514,6 +6514,15 @@ bool Entity::checkEnemy(Entity* your) return false; } + if ( myStats->type == HUMAN && (yourStats->type == AUTOMATON && !strncmp(yourStats->name, "corrupted automaton", 19)) ) + { + return true; + } + else if ( yourStats->type == HUMAN && (myStats->type == AUTOMATON && !strncmp(myStats->name, "corrupted automaton", 19)) ) + { + return true; + } + // if you have a leader, check whether we are enemies instead Entity* yourLeader = NULL; if ( yourStats->leader_uid ) @@ -6630,6 +6639,15 @@ bool Entity::checkFriend(Entity* your) return true; } + if ( myStats->type == HUMAN && (yourStats->type == AUTOMATON && !strncmp(yourStats->name, "corrupted automaton", 19)) ) + { + return false; + } + else if ( yourStats->type == HUMAN && (myStats->type == AUTOMATON && !strncmp(myStats->name, "corrupted automaton", 19)) ) + { + return false; + } + // if you have a leader, check whether we are friends instead Entity* yourLeader = NULL; if ( yourStats->leader_uid )