diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-09 17:28:01 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-09 17:28:01 +0000 |
commit | a3e718b798e8b7c5848b58a7646a783ac0163364 (patch) | |
tree | aec968fc3500f3bc502060e43414bb1bfca7897c /src/map/unit.c | |
parent | 6b435aacc6390a4ffe70b0b97636802e226c1c68 (diff) | |
download | hercules-a3e718b798e8b7c5848b58a7646a783ac0163364.tar.gz hercules-a3e718b798e8b7c5848b58a7646a783ac0163364.tar.bz2 hercules-a3e718b798e8b7c5848b58a7646a783ac0163364.tar.xz hercules-a3e718b798e8b7c5848b58a7646a783ac0163364.zip |
Cleaned up and corrected some more land skill code:
* removed redundant skill_ganbatein() function
* Added flag UF_PATHCHECK from jAthena which affects whether a skill's cells will be affected by the surrounding terrain. Adjusted existing flags so that they closely match jA's (for easier comparisons).
* Fixed code that allowed placing of skill unit cells on 'gaps'.
* Fixed code that prevented successful casting of land skills on 'gaps' (officially it's possbile, even though they will not deploy entirely).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12331 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 164e84327..f379bcc4c 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1088,8 +1088,8 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, sh if (!status_check_skilluse(src, NULL, skill_num, 0)) return 0; - if (map_getcell(src->m, skill_x, skill_y, CELL_CHKNOREACH)) - { //prevent casting ground targeted spells on non-walkable areas. [Skotlex] + if( map_getcell(src->m, skill_x, skill_y, CELL_CHKWALL) ) + {// can't cast ground targeted spells on wall cells if (sd) clif_skill_fail(sd,skill_num,0,0); return 0; } |