Remove debug logging and fix Arcane Echo/Auspicious Incantation cooldown logic#55
Draft
Remove debug logging and fix Arcane Echo/Auspicious Incantation cooldown logic#55
Conversation
- Removed all EchoFollowup debug logging statements (~40 statements) - Fixed cooldown logic: Target spell can now be cast if EITHER Echo OR Auspicious is on cooldown - Previous behavior: Prevented casting if EITHER was ready - New behavior: Only prevent casting if BOTH are ready Co-authored-by: Ewoog <72410352+Ewoog@users.noreply.github.com>
Co-authored-by: Ewoog <72410352+Ewoog@users.noreply.github.com>
Co-authored-by: Ewoog <72410352+Ewoog@users.noreply.github.com>
Co-authored-by: Ewoog <72410352+Ewoog@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove debug from Arcane Echo target spell chain
Remove debug logging and fix Arcane Echo/Auspicious Incantation cooldown logic
Nov 23, 2025
Owner
|
@copilot Now this doesn't use any of the three skills (Echo, Auspicious, or Target). No output to log. |
The previous logic incorrectly used skillbar slot numbers to index into the prioritized skills array. This prevented any skills from being cast. Now correctly retrieves skill IDs from skillbar slots using GetSkillIDBySlot() API. Co-authored-by: Ewoog <72410352+Ewoog@users.noreply.github.com>
Author
Fixed in fd49acd. The issue was that I incorrectly used skillbar slot numbers to index into the prioritized skills array. Now correctly retrieves target skill IDs from skillbar slots using |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: Remove debug and fix Arcane Echo/Auspicious Incantation cooldown logic ✅
Completed Tasks:
Summary of Changes:
1. Debug Statements Removed ✅
Py4GW.Console.Log("EchoFollowup", ...)debug statements from HeroAI/combat.py2. Cooldown Logic Fixed ✅
Location: HeroAI/combat.py, lines 1518-1554
Critical Bug Fix (Latest commit):
GLOBAL_CACHE.SkillBar.GetSkillIDBySlot()APIHow it works:
Priority order: Auspicious Incantation (highest) → Arcane Echo → Target Spell
3. Optimizations ✅
Files Modified:
HeroAI/combat.py- Removed debug logs, fixed cooldown logic, and corrected skill ID lookupTesting:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.