mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-21 20:46:22 +00:00
major class spells
This commit is contained in:
@@ -60,7 +60,7 @@ class CastDebuffSpellOnAttackerAction : public CastAuraSpellAction
|
||||
|
||||
Value<Unit*>* GetTargetValue() override;
|
||||
std::string const getName() override { return spell + " on attacker"; }
|
||||
ActionThreatType getThreatType() override { return ActionThreatType::Aoe; }
|
||||
// ActionThreatType getThreatType() override { return ActionThreatType::Aoe; }
|
||||
};
|
||||
|
||||
class CastDebuffSpellOnMeleeAttackerAction : public CastAuraSpellAction
|
||||
@@ -70,7 +70,7 @@ class CastDebuffSpellOnMeleeAttackerAction : public CastAuraSpellAction
|
||||
|
||||
Value<Unit*>* GetTargetValue() override;
|
||||
std::string const getName() override { return spell + " on attacker"; }
|
||||
ActionThreatType getThreatType() override { return ActionThreatType::Aoe; }
|
||||
// ActionThreatType getThreatType() override { return ActionThreatType::Aoe; }
|
||||
};
|
||||
|
||||
class CastBuffSpellAction : public CastAuraSpellAction
|
||||
|
||||
@@ -461,11 +461,11 @@ bool StoreLootAction::IsLootAllowed(uint32 itemid, PlayerbotAI* botAI)
|
||||
{
|
||||
if (quest->RequiredItemId[i] == itemid)
|
||||
{
|
||||
if (AI_VALUE2(uint32, "item count", proto->Name1) < quest->RequiredItemCount[i])
|
||||
{
|
||||
if (botAI->GetMaster() && sPlayerbotAIConfig->syncQuestWithPlayer)
|
||||
return false; //Quest is autocomplete for the bot so no item needed.
|
||||
}
|
||||
// if (AI_VALUE2(uint32, "item count", proto->Name1) < quest->RequiredItemCount[i])
|
||||
// {
|
||||
// if (botAI->GetMaster() && sPlayerbotAIConfig->syncQuestWithPlayer)
|
||||
// return false; //Quest is autocomplete for the bot so no item needed.
|
||||
// }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -758,6 +758,10 @@ bool MovementAction::IsMovingAllowed()
|
||||
if (bot->GetMotionMaster()->GetMotionSlot(MOTION_SLOT_CONTROLLED)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// if (bot->HasUnitMovementFlag(MOVEMENTFLAG_FALLING)) {
|
||||
// return false;
|
||||
// }
|
||||
return bot->GetMotionMaster()->GetCurrentMovementGeneratorType() != FLIGHT_MOTION_TYPE;
|
||||
}
|
||||
|
||||
@@ -779,7 +783,6 @@ void MovementAction::UpdateMovementState()
|
||||
|
||||
if (bot->IsFlying())
|
||||
bot->UpdateSpeed(MOVE_FLIGHT, true);
|
||||
|
||||
// Temporary speed increase in group
|
||||
//if (botAI->HasRealPlayerMaster())
|
||||
//bot->SetSpeedRate(MOVE_RUN, 1.1f);
|
||||
|
||||
Reference in New Issue
Block a user