From 2d4e01982b93c70d6164f3f10efecb4d127052b8 Mon Sep 17 00:00:00 2001
From: Ny Bruker <robinhs@stud.ntnu.no>
Date: Sat, 1 Oct 2022 18:11:24 +0200
Subject: [PATCH] Changed params for abilities.

---
 MrBigsock/Assets/Code/Core/Abilities/Base/BaseAbility.cs | 4 ++--
 MrBigsock/Assets/Code/Core/Abilities/Base/IAbility.cs    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/BaseAbility.cs b/MrBigsock/Assets/Code/Core/Abilities/Base/BaseAbility.cs
index aeb2f813..dfc797c2 100644
--- a/MrBigsock/Assets/Code/Core/Abilities/Base/BaseAbility.cs
+++ b/MrBigsock/Assets/Code/Core/Abilities/Base/BaseAbility.cs
@@ -50,7 +50,7 @@ namespace BigSock {
 			Handles cooldown and ability cost here.
 			Returns true if the ability was successfully used.
 		*/
-		public bool Use(Character actor, Vector2 target) {
+		public bool Use(Character actor, Vector3? target = null) {
 			// Check that the ability is cooled down.
 			if(Ready) {
 				//> Handle checking costs here.
@@ -77,7 +77,7 @@ namespace BigSock {
 				- Even if nothing was hit, used to indicate that cooldowns should be updated.
 			This should be overridden in sub-classes for the actual abilities.
 		*/
-		protected abstract bool Activate(Character actor, Vector2 target);
+		protected abstract bool Activate(Character actor, Vector3? target);
 
 	}
 
diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/IAbility.cs b/MrBigsock/Assets/Code/Core/Abilities/Base/IAbility.cs
index 80fa7096..07034791 100644
--- a/MrBigsock/Assets/Code/Core/Abilities/Base/IAbility.cs
+++ b/MrBigsock/Assets/Code/Core/Abilities/Base/IAbility.cs
@@ -57,6 +57,6 @@ namespace BigSock {
 		/*
 			Try to use the ability.
 		*/
-		bool Use(Character actor, Vector2 target);
+		bool Use(Character actor, Vector3? target);
 	}
 }
\ No newline at end of file
-- 
GitLab