Fixed bug where weak point hit pop up would appear after a destroyed enemy attacks

This commit is contained in:
Gregory Campbell
2020-04-18 14:42:37 -04:00
parent b8686ee11b
commit 85ce0c8ddf
+4
View File
@@ -497,6 +497,8 @@ public class GMScript : MonoBehaviour
float modifiedHeal = 0f;
int colourModifier = ColourCompare(partyMember, (Colours)EnemyPartsColours[2]);
weakPointHit = false;
// ATTACK MODIFIER BASED ON THE RELATION OF THE COLOUR OF THE PARTY MEMBER
// AND THE COLOUR OF THE ENEMY ROBOT BASE BODY COLOUR
switch(colourModifier)
@@ -651,6 +653,8 @@ public class GMScript : MonoBehaviour
int modifier = 0;
int modifiedAttack = 2;
weakPointHit = false;
for(int i = 0; i < 2; i++){
for(int j = 0; j < partySize; j++){