summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-13 17:37:08 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-13 17:37:08 +0000
commit246784a13ccf2f3af3d3e4e01e9d964463fd9c67 (patch)
tree5ac84048a8a96a6201cbd44b36f9dd2e690a4228 /src/map/status.c
parent7c88cfdb659578ce7d79c6a2bda33d2907d6e246 (diff)
downloadhercules-246784a13ccf2f3af3d3e4e01e9d964463fd9c67.tar.gz
hercules-246784a13ccf2f3af3d3e4e01e9d964463fd9c67.tar.bz2
hercules-246784a13ccf2f3af3d3e4e01e9d964463fd9c67.tar.xz
hercules-246784a13ccf2f3af3d3e4e01e9d964463fd9c67.zip
- Marionette and Devotion will now check raw distance and ignore obstacles and the like.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7134 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 9b9a8c081..87457f2dd 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6023,7 +6023,7 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
{ //Check range and timeleft to preserve status [Skotlex]
//This implementation won't work for mobs because of map_id2sd, but it's a small cost in exchange of the speed of map_id2sd over map_id2sd
struct map_session_data *md = map_id2sd(sc->data[type].val1);
- if (md && battle_check_range(bl, &md->bl, sc->data[type].val3) && (sc->data[type].val4-=1000)>0)
+ if (md && check_distance_bl(bl, &md->bl, sc->data[type].val3) && (sc->data[type].val4-=1000)>0)
{
sc->data[type].timer = add_timer(1000+tick, status_change_timer, bl->id, data);
return 0;
@@ -6073,7 +6073,7 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
case SC_MARIONETTE2:
{
struct block_list *pbl = map_id2bl(sc->data[type].val1);
- if (pbl && battle_check_range(bl, pbl, 7) && (sc->data[type].val2--)>0)
+ if (pbl && check_distance_bl(bl, pbl, 7) && (sc->data[type].val2--)>0)
{
sc->data[type].timer = add_timer(
1000 + tick, status_change_timer,