Hi. I'm making a game where there is an enemy that can only take damage from a specific attack. I'd like to add a penalty in the form of an HP loss if the player tries to attack with any other attack. Is there a relatively easy way to achieve this?
For an instance. Player use Fire on Mirror knight. Player takes 10 damage: Mirror knight takes 0 damage.
Player uses Hammer blow on Mirror knight. Mirror knight takes 9999 damage: Player takes 0 damage.
Thank you in advance.
For an instance. Player use Fire on Mirror knight. Player takes 10 damage: Mirror knight takes 0 damage.
Player uses Hammer blow on Mirror knight. Mirror knight takes 9999 damage: Player takes 0 damage.
Thank you in advance.