Skip to content

Commit b164037

Browse files
committed
AutoHook 2.3.0.1 [PUSH]
Fixing #41
1 parent 4b8602a commit b164037

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

AutoHook/AutoHook.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<Authors>Det</Authors>
5-
<Version>2.3.0.0</Version>
5+
<Version>2.3.0.1</Version>
66
<Description>Auto hooks for you</Description>
77
<PackageProjectUrl>https://github.com/InitialDet/AutoHook</PackageProjectUrl>
88
<Configurations>Release;Debug</Configurations>

AutoHook/Classes/AvailableAutoCast.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ public override bool CastCondition()
245245

246246
bool notOvercaped = (PlayerResources.GetCurrentGP() + itemGPRecovery < PlayerResources.GetMaxGP());
247247

248-
PluginLog.Debug($"Is Overcap? {notOvercaped}");
249-
return notOvercaped;
248+
return notOvercaped && PlayerResources.IsPotOffCooldown();
250249
}
251250

252251
public override void SetThreshold(uint newcost)
@@ -275,7 +274,7 @@ public override bool CastCondition()
275274

276275
bool notOvercaped = (PlayerResources.GetCurrentGP() + itemGPRecovery < PlayerResources.GetMaxGP());
277276

278-
return notOvercaped;
277+
return notOvercaped && PlayerResources.IsPotOffCooldown();
279278
}
280279

281280
public override void SetThreshold(uint newcost)
@@ -304,7 +303,7 @@ public override bool CastCondition()
304303

305304
bool notOvercaped = (PlayerResources.GetCurrentGP() + itemGPRecovery < PlayerResources.GetMaxGP());
306305

307-
return notOvercaped;
306+
return notOvercaped && PlayerResources.IsPotOffCooldown();
308307
}
309308

310309
public override void SetThreshold(uint newcost)

AutoHook/Classes/BaseActionCast.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ public bool IsAvailableToCast(HookConfig? hookConfig)
7070

7171
bool isActive = PlayerResources.ActionAvailable(ID, ActionType);
7272

73-
74-
if (ID == Data.IDs.Item.HiCordial)
75-
{
76-
if (GPThresholdAbove)
77-
PluginLog.Debug($"currentGp({currentGp}) >= GPThreshold({GPThreshold}), is Active? {(hasGP && isActive)}");
78-
else
79-
PluginLog.Debug($"currentGp({currentGp}) <= GPThreshold({GPThreshold}), is Active? {(hasGP && isActive)}");
80-
}
81-
8273
return hasGP && isActive && CastCondition();
8374
}
8475

0 commit comments

Comments
 (0)