1.5 is a lot better about figuring out what's a player and what's an enemy. In 1.5, it only needs the very first occurence ever of the mob's name to appear in such a way that it's unambiguous. For example, if the very first occurence ever is:
The King Behemoth hits Valyana for 450 points of damage.
Then neither of these will ever be incorrect for the duration of the parse.
Where it gets confused usually is when an avatar, wyvern, or pet hits an enemy, because in that case the "code" that it comes across with is ambiguous. In 1.5 that's fixed, it looks at each entity and tries to figure out if either one has ever been used in an unambiguous manner before, and if it has it picks the opposite type for whichever one is unknown.