But in families, the objects must share their attributes and HP, right?
Example: one Golem has 10 HP and a Slime has 5 HP. If they belong to the same family, they can only have the same HP, is that so?
My question is if there's a way for the function to identify the enemy that's being hit or not. If both are being hit with AoE and receive 4 damage, do I have to create two functions (one function for the Golem and one for the Slime) or not?