Croebh / Avrae-Customizations

A place for me to store and update all of my Avrae aliases and customizations.
GNU General Public License v3.0
28 stars 23 forks source link

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

Open SethHartman13 opened 8 months ago

SethHartman13 commented 8 months ago

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```
Croebh commented 8 months ago

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

SethHartman13 commented 8 months ago

Understood, I appreciate the work that you do regardless.