mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-13 23:33:47 +00:00
ICC LK minor update (#931)
PP Removed pre stacking for ranged when volatile ooze spawn (they will kill it much faster now and only stack if someone actually gets targeted by ooze) LK Hunters will use trnaq shot to remove enrage from shamblings Improved valkyr cc Minimized ping-ponging during winter phase
This commit is contained in:
@@ -681,14 +681,24 @@ float IccLichKingAddsMultiplier::GetValue(Action* action)
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", "the lich king");
|
||||
if (!boss)
|
||||
return 1.0f;
|
||||
Unit* currentTarget = AI_VALUE(Unit*, "current target");
|
||||
|
||||
if (dynamic_cast<IccLichKingWinterAction*>(action))
|
||||
{
|
||||
if(dynamic_cast<CombatFormationMoveAction*>(action) || dynamic_cast<IccLichKingAddsAction*>(action))
|
||||
if (currentTarget && currentTarget->GetGUID() == boss->GetGUID())
|
||||
{
|
||||
if (dynamic_cast<ReachMeleeAction*>(action) || dynamic_cast<ReachSpellAction*>(action) || dynamic_cast<ReachTargetAction*>(action))
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
if (dynamic_cast<CombatFormationMoveAction*>(action) || dynamic_cast<IccLichKingAddsAction*>(action))
|
||||
return 0.0f;
|
||||
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
//melee reach, spell reach, ranged reach
|
||||
|
||||
if (botAI->IsRanged(bot))
|
||||
{
|
||||
// Check for defile presence
|
||||
|
||||
Reference in New Issue
Block a user