From 617d0ee031f5edf0aba821df771e6b6018dfaee6 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 11 Jun 2023 19:16:56 +0800 Subject: [PATCH] remove debug info --- src/strategy/actions/GenericSpellActions.cpp | 6 +++--- src/strategy/triggers/GenericTriggers.cpp | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/strategy/actions/GenericSpellActions.cpp b/src/strategy/actions/GenericSpellActions.cpp index aa25fee2..817a5eeb 100644 --- a/src/strategy/actions/GenericSpellActions.cpp +++ b/src/strategy/actions/GenericSpellActions.cpp @@ -145,9 +145,9 @@ bool CastEnchantItemAction::isPossible() uint32 spellId = AI_VALUE2(uint32, "spell id", spell); - bool ok = AI_VALUE2(Item*, "item for spell", spellId); - Item* item = AI_VALUE2(Item*, "item for spell", spellId); - botAI->TellMasterNoFacing("spell: " + spell + ", spell id: " + std::to_string(spellId) + " item for spell: " + std::to_string(ok)); + // bool ok = AI_VALUE2(Item*, "item for spell", spellId); + // Item* item = AI_VALUE2(Item*, "item for spell", spellId); + // botAI->TellMasterNoFacing("spell: " + spell + ", spell id: " + std::to_string(spellId) + " item for spell: " + std::to_string(ok)); return spellId && AI_VALUE2(Item*, "item for spell", spellId); } diff --git a/src/strategy/triggers/GenericTriggers.cpp b/src/strategy/triggers/GenericTriggers.cpp index aee20ae3..c12d966c 100644 --- a/src/strategy/triggers/GenericTriggers.cpp +++ b/src/strategy/triggers/GenericTriggers.cpp @@ -60,14 +60,14 @@ bool ComboPointsAvailableTrigger::IsActive() bool LoseAggroTrigger::IsActive() { - Unit* mt = AI_VALUE(Unit*, "main tank"); - if (mt) { - botAI->TellMasterNoFacing("Has aggro: " + std::to_string(AI_VALUE2(bool, "has aggro", "current target")) - + " My main tank is: " + mt->GetName()); - } else { - botAI->TellMasterNoFacing("Has aggro: " + std::to_string(AI_VALUE2(bool, "has aggro", "current target")) - + " No main tank detected"); - } + // Unit* mt = AI_VALUE(Unit*, "main tank"); + // if (mt) { + // botAI->TellMasterNoFacing("Has aggro: " + std::to_string(AI_VALUE2(bool, "has aggro", "current target")) + // + " My main tank is: " + mt->GetName()); + // } else { + // botAI->TellMasterNoFacing("Has aggro: " + std::to_string(AI_VALUE2(bool, "has aggro", "current target")) + // + " No main tank detected"); + // } return !AI_VALUE2(bool, "has aggro", "current target"); }