private void CalculateElementEffect(Data.TileTypes attackElementType, Data.TileTypes targetElementType) { if (attackElementType == Data.TileTypes.Blue) { WaterElementEffect(targetElementType); } else if (attackElementType == Data.TileTypes.Green) { //Heal the player who swiped if (playerHumanTurn) { healValue = CalculateHealValue(); pcControl.SetHealthUp(healValue); Debug.Log("Player healed: " + healValue); nullifyAttack = true; } else { healValue = CalculateHealValue(); npcControl.SetHealthUp(healValue); Debug.Log("Enemy healed: " + healValue); nullifyAttack = true; } } else if (attackElementType == Data.TileTypes.Magnet) { MagnetElementEffect(targetElementType); } else if (attackElementType == Data.TileTypes.Red) { FireElementEffect(targetElementType); } else if (attackElementType == Data.TileTypes.White) { bonusTurns = CalculateBonusTurns(); Debug.Log("Bonus turns: " + bonusTurns); if (playerHumanTurn) { npcControl.EnableFreezeStatus(true); } else { pcControl.EnableFreezeStatus(true); } } else if (attackElementType == Data.TileTypes.Yellow) { LightningElementEffect(targetElementType); } }