From a0e955d14bbeed486b7e44542aa81821a48d4d34 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 19 Jan 2025 14:46:18 +0800 Subject: [PATCH] Fix comments --- conf/playerbots.conf.dist | 2 +- src/PlayerbotAI.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index e023f2fc..00aa4fea 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -613,7 +613,7 @@ AiPlayerbot.EquipmentPersistenceLevel = 80 # Default: 1 (enabled) AiPlayerbot.AutoUpgradeEquip = 1 -# Only set wolf pets for hunters to have higher damage (0 = disabled, 1 = enabled for max-level, 2 = enabled) +# Only set wolf pets for hunters to have higher damage (0 = disabled, 1 = enabled only for max-level, 2 = enabled) # Default: 0 (disabled) AiPlayerbot.HunterWolfPet = 0 diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index 0a5a4672..25afccfb 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -2929,8 +2929,8 @@ bool PlayerbotAI::CanCastSpell(uint32 spellid, Unit* target, bool checkHasSpell, Unit* oldSel = bot->GetSelectedUnit(); // TRIGGERED_IGNORE_POWER_AND_REAGENT_COST flag for not calling CheckPower in check - // which causes buff charge to be ineffectively reduced (e.g. dk freezing fog for howling blast) - /// @TODO: Fix all calling on ApplySpellMod + // which avoids buff charge to be ineffectively reduced (e.g. dk freezing fog for howling blast) + /// @TODO: Fix all calls to ApplySpellMod Spell* spell = new Spell(bot, spellInfo, TRIGGERED_IGNORE_POWER_AND_REAGENT_COST); spell->m_targets.SetUnitTarget(target);