protected override void Attack1() { //Ability 1 [Kick] - Melee damage. Turns around and kicks. Interrupts enemy attack. 6 seconds cool down. foreach (string s in Damagable) { foreach (GameObject g in GameObject.FindGameObjectsWithTag(s)) { if (g.PrimaryCollider().enabled&& BasicAttackRange.IsTouching(g.PrimaryCollider())) { g.PrimaryController().Damage(3, "Knockback"); } } } attackSound1.Play(); }
protected override void Attack1() { //Ability 1 [Peck] - Melee damage. Adds a bleeding effect on the enemy that drains hp slowly for 3 seconds. 6 second cooldown. foreach (string s in Damagable) { foreach (GameObject g in GameObject.FindGameObjectsWithTag(s)) { if (g.PrimaryCollider().enabled&& BasicAttackRange.IsTouching(g.PrimaryCollider())) { g.PrimaryController().Damage(2, "Bleed"); } } } attackSound1.Play(); }
protected override void Attack1() { //Ability 1 [Nullity Fang] - Melee damage. Silences target for 1 second. Against bosses, this attack interrupts a magic attack instead. 5 second cooldown. foreach (string s in Damagable) { foreach (GameObject g in GameObject.FindGameObjectsWithTag(s)) { if (g.PrimaryCollider().enabled&& BasicAttackRange.IsTouching(g.PrimaryCollider())) { g.PrimaryController().Damage(4, "Silence"); } } } attackSound1.Play(); }