File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed
Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments