summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackhole89 <blackhole89@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-24 18:35:14 +0000
committerblackhole89 <blackhole89@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-24 18:35:14 +0000
commited8f721679a82f81af62ece387d8cef66b3eec89 (patch)
tree5443fcd2d8dd01e5cf1fe6c438651feaa6a60ff1
parentdc3d23e60aaad210be711844ab24b3a0a2b113aa (diff)
downloadhercules-ed8f721679a82f81af62ece387d8cef66b3eec89.tar.gz
hercules-ed8f721679a82f81af62ece387d8cef66b3eec89.tar.bz2
hercules-ed8f721679a82f81af62ece387d8cef66b3eec89.tar.xz
hercules-ed8f721679a82f81af62ece387d8cef66b3eec89.zip
Replaced !sd->special_state.nocastcancel2 && something to (sd->special_state.nocastcancel2 || something).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5733 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/unit.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 7ec67d53f..6b12523b7 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -5,6 +5,8 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EV
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
2006/03/24
+ * Fixed unit_skillcastcancel reading the nocastcancel flags the exact
+ wrong way around [blackhole89]
* Added function map_search_freecell to locate an available cell around an
area (for recall/warping skills). UNTESTED. [Skotlex]
* Added unit.c to the VC8 project files. Thanks to Joshuaali [Skotlex]
diff --git a/src/map/unit.c b/src/map/unit.c
index 1e2e2268b..ad76f5145 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1250,8 +1250,8 @@ int unit_skillcastcancel(struct block_list *bl,int type)
if (!ud->state.skillcastcancel)
return 0;
- if (sd && !sd->special_state.no_castcancel2 &&
- !(sd->special_state.no_castcancel && !map_flag_gvg(bl->m)))
+ if (sd && (sd->special_state.no_castcancel2 ||
+ (sd->special_state.no_castcancel && !map_flag_gvg(bl->m)))) //fixed flags being read the wrong way around [blackhole89]
return 0;
}