diff options
author | Hello=) <hello@themanaworld.org> | 2025-06-08 00:21:32 +0300 |
---|---|---|
committer | Hello=) <hello@themanaworld.org> | 2025-06-08 00:21:32 +0300 |
commit | 370129de42493715987febc49f190091391697c9 (patch) | |
tree | dfd669323d9fda341187ca9b6d63698a39d435fe | |
parent | 8fb28c0950cb1ac0cffb2d22bb7b11c50dfb187d (diff) | |
download | serverdata-return-summon-gid-spells-refactor.tar.gz serverdata-return-summon-gid-spells-refactor.tar.bz2 serverdata-return-summon-gid-spells-refactor.tar.xz serverdata-return-summon-gid-spells-refactor.zip |
Revert "Apply 1 suggestion(s) to 1 file(s)"return-summon-gid-spells-refactor
This reverts commit 8fb28c0950cb1ac0cffb2d22bb7b11c50dfb187d.
Reason: causes map server crash (exit) upon actually casting spells.
-rw-r--r-- | world/map/npc/magic/_procedures.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/world/map/npc/magic/_procedures.txt b/world/map/npc/magic/_procedures.txt index 2d80de4a..b3f8b8c4 100644 --- a/world/map/npc/magic/_procedures.txt +++ b/world/map/npc/magic/_procedures.txt @@ -391,8 +391,7 @@ L_Summon: set .@qty, .@qty - 1; set .@realx, rand(.@x-.@r, .@x+.@r); // Pick spot around (x,y) set .@realy, rand(.@y-.@r, .@y+.@r); - if (!iscollision(.@map$, .@realx, .@realy)) // Spot ok? - goto L_SummonHere; + if !(iscollision(.@map$, .@realx, .@realy)) goto L_SummonHere; // Spot ok? set .@realx, .@x; // Fallback to (x, y) on collision (typically player x,y) set .@realy, .@y; goto L_SummonHere; |