summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-09 20:02:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-09 20:02:56 +0000
commit7d946b866e576b8cafb8a81ba82c8a1d49dab832 (patch)
tree46eab1ceb60c5d26a69f47c08156f3b87a52a005 /src/map/status.c
parentc71baed92b4102a2197c955627bec3728d66a4df (diff)
downloadhercules-7d946b866e576b8cafb8a81ba82c8a1d49dab832.tar.gz
hercules-7d946b866e576b8cafb8a81ba82c8a1d49dab832.tar.bz2
hercules-7d946b866e576b8cafb8a81ba82c8a1d49dab832.tar.xz
hercules-7d946b866e576b8cafb8a81ba82c8a1d49dab832.zip
- Reduced the check area of hermod to 3x3, you now have to literally stand next to a warp for it to work.
- Corrected the Fog of Wall check so that it lasts 2x when it is placed on TOP of a suiton/deluge, not when the caster is on top of them. - Updated status_check_skilluse so that when the caster has a disabling status change (stun/petrify/etc) it will block the skill in all cases EXCEPT on cast-end when the skill is ground-targetted. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9185 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 99b8cfec4..e74e7a5a5 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -963,10 +963,13 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
if(sc && sc->count)
{
- if(sc->opt1 >0 && flag != 1)
- //When sc do not cancel casting, the spell should come out, and when it does, we can never have
- //a flag == 1 && sc->opt1 case, since cancelling should had been stopped before.
- return 0;
+ if(sc->opt1 >0)
+ { //Stuned/Frozen/etc
+ if (flag != 1) //Can't cast, casted stuff can't damage.
+ return 0;
+ if (!skill_get_inf(skill_num)&INF_GROUND_SKILL)
+ return 0; //Targetted spells can't come off.
+ }
if (
(sc->data[SC_TRICKDEAD].timer != -1 && skill_num != NV_TRICKDEAD)