Skip to content

Commit f59517c

Browse files
committed
[Player] change assisted combat distance check from < to <=
1 parent f869fa7 commit f59517c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/player/player.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3511,7 +3511,7 @@ std::string player_t::parse_assisted_combat_rule( const assisted_combat_rule_dat
35113511
// TODO: Are there any other types of passives to check here?
35123512
// TODO: What happens when Blizzard uses an aura here like they did with Mind Flay: Insanity?
35133513
}
3514-
return ""; // no check necessary because simc actions are filtered out of the spell is not known
3514+
return ""; // no check necessary because simc actions are filtered out if the spell is not known
35153515
case SPELL_ON_COOLDOWN:
35163516
assert( v2 == 0 && v3 == 0 );
35173517
if ( v1 )
@@ -3524,7 +3524,7 @@ std::string player_t::parse_assisted_combat_rule( const assisted_combat_rule_dat
35243524
return ""; // no check necessary because simc actions are not ready unless their cooldown is ready
35253525
case TARGET_DISTANCE_LESS:
35263526
assert( v2 == 0 && v3 == 0 );
3527-
return fmt::format( "target.distance<{}", v1 );
3527+
return fmt::format( "target.distance<={}", v1 );
35283528
case TARGET_DISTANCE_GREATER:
35293529
assert( v2 == 0 && v3 == 0 );
35303530
return fmt::format( "target.distance>{}", v1 );

0 commit comments

Comments
 (0)