diff --git a/Source/Nakatomi/NakatomiAIAttackTokenManager.cpp b/Source/Nakatomi/NakatomiAIAttackTokenManager.cpp index c95b9ca..a014a03 100644 --- a/Source/Nakatomi/NakatomiAIAttackTokenManager.cpp +++ b/Source/Nakatomi/NakatomiAIAttackTokenManager.cpp @@ -14,12 +14,14 @@ bool UNakatomiAIAttackTokenManager::RequestToken() return true; } -void UNakatomiAIAttackTokenManager::ReleaseToken() +bool UNakatomiAIAttackTokenManager::ReleaseToken() { if (attackTokensUsed > 0) { attackTokensUsed--; } + + return false; } void UNakatomiAIAttackTokenManager::Reset() diff --git a/Source/Nakatomi/NakatomiAIAttackTokenManager.h b/Source/Nakatomi/NakatomiAIAttackTokenManager.h index 86d524e..7fa1e2a 100644 --- a/Source/Nakatomi/NakatomiAIAttackTokenManager.h +++ b/Source/Nakatomi/NakatomiAIAttackTokenManager.h @@ -25,7 +25,7 @@ public: bool RequestToken(); - void ReleaseToken(); + bool ReleaseToken(); void Reset();