Avrae-Customizations icon indicating copy to clipboard operation
Avrae-Customizations copied to clipboard

[Bug] Error Locating Target Coordinate (Problems targeting creature)

Open SethHartman13 opened this issue 1 year ago • 2 comments
trafficstars

What alias/snippet is this for? map/targeting (I believe)

Describe the bug Problems targeting Bandit Captain (BC1) in combat. Based upon what the error message said, my guess is that it couldn't find the attacker's x-coordinate within the string that contains coordinate information.

To Reproduce Player character was attacking target creature (BC1) from the right within 5ft (so tokens are touching) with a dagger. Target creature has the paralyzed effect applied upon them.

Expected behavior Player Character attacks and hits target creature (BC1) dealing damage, resolving effects, etc.

Screenshots download

(Attacker is Blai and target is BC1)

Additional context

  Line 18, col 17
    return f''' {targeting.target_output(targeting_dict = targeting.target_parsing(args = args), attacker = targeting.attacker(args = args))} '''
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  Line 202, col 39, in target_output
    distance = distance_calculator.distance(attacker = attacker, target = combat().get_combatant(target)) 
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  Line 89, col 26, in distance
    delta_x = grid_alphabet.index(attacker_x_coordinate) - grid_alphabet.index(target_x_coordinate)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: substring not found```

SethHartman13 avatar Feb 21 '24 23:02 SethHartman13

That doesn't look like my alias, but rather another one that handles attacks and targetting

Croebh avatar Feb 22 '24 00:02 Croebh

Understood, I appreciate the work that you do regardless.

SethHartman13 avatar Feb 22 '24 04:02 SethHartman13