In this pastebin I have the focal part of my code, basically i'm trying to achieve a Pokémon style type system with weaknesses, immunities and resistances my main problem is passing the elementType variable from the player or enemy that got hit and at the same time pass the damageAmount and damageType variable from what is hitting it so it can calculate the damage, the decrease_health function is from a cococode tutorial I followed to make a simple enemy but now that I need to make this i need to rework it, but first I would like to know if I can pass the three variables like I need to or if I have to make more functions. <@&1349109171240439858>
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.