Sign in to follow this  
Fawkes

[FIXED] Praying: AoE heal bug

Recommended Posts

Judging from the MethodsReligion file, priests are supposed to be able to heal people in a 3x3 area around them when they pray. The reason this never happens is because of how the game chooses the y-coordinates, as seen below:

 

for (int x = Zones.safeTileX(performer.getTileX() - 1); x <= Zones.safeTileX(performer.getTileX() + 1); ++x) {
                        for (int y = Zones.safeTileX(performer.getTileX() - 1); y <= Zones.safeTileX(performer.getTileX() + 1); ++y) {

 

It uses the x-coordinate for both the x- and y- loops. So for example, if your altar is located at (500, 250), you won't heal the 3x3 area around you. Instead, you'll heal a 3-tile diagonal line centered at (500, 500), hundreds of tiles away from your altar.

 

I'm on mobile, so apologies for the bad formatting.

  • Like 1

Share this post


Link to post
Share on other sites

Bump. Made this thread last year, rewrote it now for clarity.

  • Like 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this