コード例 #1
0
ファイル: bot_warlock_ai.cpp プロジェクト: Arkania/ArkCORE-NG
        bool doCast(Unit* victim, uint32 spellId, bool triggered = false)
        {
            if (checkBotCast(victim, spellId, CLASS_WARRIOR) != SPELL_CAST_OK)
                return false;

            return bot_ai::doCast(victim, spellId, triggered);
        }
コード例 #2
0
ファイル: bot_mage_ai.cpp プロジェクト: ddark/ecl
        bool doCast(Unit* victim, uint32 spellId, bool triggered = false)
        {
            if (checkBotCast(victim, spellId, CLASS_MAGE) != SPELL_CAST_OK)
                return false;
            bool result = bot_ai::doCast(victim, spellId, triggered);

            if (result && spellId != MANAPOTION && me->HasAura(CLEARCASTBUFF))
            {
                cost = info->CalcPowerCost(me, info->GetSchoolMask());
                clearcast = true;
            }

            return result;
        }