Fixed bug that caused enemy robot attacks to only nullify the modification when a sheild was up instead of the whole attack caused by the implementation of colours strengths/weaknesses
This commit is contained in:
@@ -475,19 +475,19 @@ public class GMScript : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
modifiedAttack = enemyAttack + modifier;
|
||||
|
||||
//HIT ONLY DAMAGES IF THERE IS NO SHEILD UP
|
||||
if(sheild == true)
|
||||
{
|
||||
|
||||
modifier = 0;
|
||||
modifiedAttack = 0;
|
||||
print("Sheild Hit!");
|
||||
Sheild.SetActive(false);
|
||||
sheild = false;
|
||||
|
||||
}
|
||||
|
||||
modifiedAttack = enemyAttack + modifier;
|
||||
|
||||
StartCoroutine(DisplayDamageText(modifiedAttack, PartyDamageText, enemyColour));
|
||||
|
||||
partyHealth -= modifiedAttack;
|
||||
|
||||
Reference in New Issue
Block a user