Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abolished Fiery Touch throws error when used facing left #2442

Open
andretchen0 opened this issue Jul 19, 2023 · 1 comment
Open

Abolished Fiery Touch throws error when used facing left #2442

andretchen0 opened this issue Jul 19, 2023 · 1 comment
Labels
abilities The issue is related to an unit ability or more coding This issue requires some programming
Milestone

Comments

@andretchen0
Copy link
Contributor

Description

When using the Abolished creature's "Fiery Touch" move while the creature is facing left, an error is thrown:

target is undefined

I believe this is a long-standing error. I checked through several months of commits and all exhibit the same error.

There is no target in the path here:

const target = arrayUtils.last(path).creature;

That's as far up the call stack as I've looked.

To reproduce

Here's a game log. Paste it into the browser console.

AB.restoreGame("Ancient Beast 0.5.0 GameLog | Generated on 2023-07-19 ||eyJhY3Rpb25zIjpbeyJhY3Rpb24iOiJhYmlsaXR5IiwidGFyZ2V0Ijp7InR5cGUiOiJoZXgiLCJ4Ijo0LCJ5IjozfSwiaWQiOjMsImFyZ3MiOnsiMSI6eyJjcmVhdHVyZSI6IlA3IiwiY29zdCI6MTB9LCIyIjp7InF1ZXJ5T3B0aW9ucyI6eyJhcmdzIjp7ImNyZWF0dXJlIjoiUDciLCJjb3N0IjoxMH0sImhleGVzIjpbeyJ4IjoyLCJ5IjowfSx7IngiOjEsInkiOjB9LHsieCI6MCwieSI6MH0seyJ4IjoyLCJ5IjoxfSx7IngiOjEsInkiOjF9LHsieCI6MCwieSI6MX0seyJ4IjozLCJ5IjoxfSx7IngiOjIsInkiOjF9LHsieCI6MSwieSI6MX0seyJ4IjoyLCJ5IjoyfSx7IngiOjEsInkiOjJ9LHsieCI6MCwieSI6Mn0seyJ4IjozLCJ5IjoyfSx7IngiOjIsInkiOjJ9LHsieCI6MSwieSI6Mn0seyJ4IjoyLCJ5IjozfSx7IngiOjEsInkiOjN9LHsieCI6MCwieSI6M30seyJ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LDFdLCJpbmNsdWRlQ3JlYXR1cmUiOnRydWUsInN0b3BPbkNyZWF0dXJlIjp0cnVlLCJkaXN0YW5jZSI6MywibWluRGlzdGFuY2UiOjAsImRpc3RhbmNlRmFsbG9mZiI6MywiZGFzaGVkSGV4ZXNBZnRlckNyZWF0dXJlU3RvcCI6dHJ1ZSwiZGFzaGVkSGV4ZXNEaXN0YW5jZSI6MCwic291cmNlQ3JlYXR1cmUiOnt9fX19fV0sInZlcnNpb24iOiIwLjUuMCIsImRhdGUiOiIyMDIzLTA3LTE5VDIyOjM2OjQ3Ljg2OFoiLCJjdXN0b20iOnsiY29uZmlnRGF0YSI6eyJwbGF5ZXJNb2RlIjoyLCJjcmVhTGltaXROYnIiOjMsInVuaXREcm9wcyI6MSwiYWJpbGl0eVVwZ3JhZGVzIjozLCJwbGFzbWFfYW1vdW50IjozMCwidHVyblRpbWVQb29sIjotMSwidGltZVBvb2wiOi02MCwiYmFja2dyb3VuZF9pbWFnZSI6IlNoYWRvdyBDYXZlIiwiY29tYmF0TG9jYXRpb24iOiJTaGFkb3cgQ2F2ZSIsImZ1bGxzY3JlZW5Nb2RlIjpmYWxzZX19fQ==")
@DreadKnight DreadKnight added this to the 0.5 - Chimera milestone Jul 20, 2023
@DreadKnight DreadKnight added coding This issue requires some programming abilities The issue is related to an unit ability or more labels Jul 20, 2023
@andretchen0 andretchen0 removed their assignment Aug 4, 2023
@JoelFernandes09
Copy link
Contributor

Looked into this a bit & I think the wider fix is to convert these files to TS & implement the functions since I think a lot of stuff has been refactored. I found out that there's a temp fix in Chimera, Gumble & more that fixes this issue. Should I open a PR with the same fix for this since it will be playable for the time being? Also do we have conversion issues for files that aren't TS yet?

@andretchen0 @DreadKnight

@DreadKnight DreadKnight pinned this issue May 10, 2024
@DreadKnight DreadKnight unpinned this issue Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abilities The issue is related to an unit ability or more coding This issue requires some programming
Projects
None yet
Development

No branches or pull requests

3 participants