mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Trigger spell availability check
This commit is contained in:
@@ -17,8 +17,10 @@
|
||||
|
||||
StatsWeightCalculator::StatsWeightCalculator(Player* player) : player_(player)
|
||||
{
|
||||
if (PlayerbotAI::IsCaster(player))
|
||||
type_ = CollectorType::SPELL;
|
||||
if (PlayerbotAI::IsHeal(player))
|
||||
type_ = CollectorType::SPELL_HEAL;
|
||||
else if (PlayerbotAI::IsCaster(player))
|
||||
type_ = CollectorType::SPELL_DMG;
|
||||
else if (PlayerbotAI::IsMelee(player))
|
||||
type_ = CollectorType::MELEE;
|
||||
else
|
||||
@@ -179,7 +181,7 @@ void StatsWeightCalculator::GenerateBasicWeights(Player* player)
|
||||
{
|
||||
stats_weights_[STATS_TYPE_INTELLECT] += 0.5f;
|
||||
stats_weights_[STATS_TYPE_SPIRIT] += 0.5f;
|
||||
stats_weights_[STATS_TYPE_SPELL_POWER] += 1.0f;
|
||||
stats_weights_[STATS_TYPE_HEAL_POWER] += 1.0f;
|
||||
stats_weights_[STATS_TYPE_MANA_REGENERATION] += 0.5f;
|
||||
stats_weights_[STATS_TYPE_CRIT] += 0.5f;
|
||||
stats_weights_[STATS_TYPE_HASTE] += 1.0f;
|
||||
|
||||
Reference in New Issue
Block a user