summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-12 18:38:10 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-12 18:38:10 +0000
commit04866a6fc13775319e7af9bfa1af592742a08d07 (patch)
tree7cdb2f321a8e40de9178fd4f74528a9475545e19
parent16c5028d6274e5c1a21dfcc0f26f926597ff2edd (diff)
downloadhercules-04866a6fc13775319e7af9bfa1af592742a08d07.tar.gz
hercules-04866a6fc13775319e7af9bfa1af592742a08d07.tar.bz2
hercules-04866a6fc13775319e7af9bfa1af592742a08d07.tar.xz
hercules-04866a6fc13775319e7af9bfa1af592742a08d07.zip
- Fixed npc_check_areanpc, Wand of Hermod works now.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9854 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/npc.c4
-rw-r--r--src/map/status.c1
3 files changed, 4 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 770595f71..b59740bab 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2007/02/12
+ * Fixed Wand of Hermod
* Corrected Spider Web casting around caster instead of target's position.
* Corrected a possible crash during login due to checking for the incorrect
variable (lets pc_calc_status be invoked when it shouldn't)
diff --git a/src/map/npc.c b/src/map/npc.c
index cffe2a26e..0924e6c1f 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1056,8 +1056,8 @@ int npc_check_areanpc(int flag,int m,int x,int y,int range)
default:
continue;
}
- if (x0 >= map[m].npc[i]->bl.x-xs/2 && x1 < map[m].npc[i]->bl.x-xs/2+xs &&
- y0 >= map[m].npc[i]->bl.y-ys/2 && y1 < map[m].npc[i]->bl.y-ys/2+ys)
+ if (x1 >= map[m].npc[i]->bl.x-xs/2 && x0 < map[m].npc[i]->bl.x-xs/2+xs &&
+ y1 >= map[m].npc[i]->bl.y-ys/2 && y0 < map[m].npc[i]->bl.y-ys/2+ys)
break;
}
if (i==map[m].npc_num)
diff --git a/src/map/status.c b/src/map/status.c
index e3ad739cf..48afad54a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2420,6 +2420,7 @@ int status_calc_homunculus(struct homun_data *hd, int first)
status->adelay = status->amotion; //It seems adelay = amotion for Homunculus.
status_calc_misc(&hd->bl, status, hom->level);
+ status_cpy(&hd->battle_status, status);
status_calc_bl(&hd->bl, SCB_ALL); //Status related changes.
if (memcmp(&b_status, status, sizeof(struct status_data)))