blueboy / portalclassic

playerbot support for C(ontinued)-MaNGOS (classic fork)
GNU General Public License v2.0
18 stars 32 forks source link

Some issues #21

Closed Whyy0416 closed 8 years ago

Whyy0416 commented 8 years ago

1.Warrior don't chase and face second target while combat.And I did some change with source code like that:

CombatManeuverReturns PlayerbotWarriorAI::DoNextCombatManeuverPVE(Unit *pTarget) { if (!m_ai) return RETURN_NO_ACTION_ERROR; if (!m_bot) return RETURN_NO_ACTION_ERROR;

//Unit* pVictim = pTarget->getVictim(); //float fTargetDist = m_bot->GetCombatDistance(pTarget, true); uint32 spec = m_bot->GetSpec(); bool meleeReach = m_bot->CanReachWithMeleeAttack(pTarget);

if (!meleeReach) m_bot->GetMotionMaster()->MoveChase(pTarget);

// Face enemy, make sure bot is attacking if (!m_bot->HasInArc(M_PI_F, pTarget)) m_bot->SetFacingTo(m_bot->GetAngle(pTarget)); return RETURN_CONTINUE;

actually,I copy and paste that code everywhere.I know some code is unnecessary,but it works pretty fine.

2.JOB_MANAONLY seems don't work with Mage's ARCANE_INTELLECT.

3.Mage always cast CONJURE_WATER and CONJURE_FOOD rank 1.If I whisper to it to cast conjure water or food,it will cast a higher rank conjure water or food.Maybe something is wrong with initSpell, but I can't figure it out.