I'm trying to make it so that when my character fires an arrow and it hits an enemy, the enemy loses health based on how much armor it has and what type of unit it is. What and where should i put this code? In the arrow class or the character class?
public void damg() { if(enemy) { if(VayneArrow.getLeft().equals(PurpMins.getLeft()) {PurpMinHp-=vayneAttk; } else {enemy=false} } }