-Add/upd basic documentation for script.c
-Fix some indentation and strange codestyle change to A-Style git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16915 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
752776e4cc
commit
94b8b02141
422
src/map/script.c
422
src/map/script.c
File diff suppressed because it is too large
Load Diff
@ -9133,17 +9133,15 @@ int skill_castend_id(int tid, unsigned int tick, int id, intptr_t data)
|
|||||||
if( ((TBL_MOB*)target)->class_ == MOBID_EMPERIUM )
|
if( ((TBL_MOB*)target)->class_ == MOBID_EMPERIUM )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else if (inf && battle_check_target(src, target, inf) <= 0){
|
||||||
if (inf && battle_check_target(src, target, inf) <= 0){
|
|
||||||
if (sd) clif_skill_fail(sd,ud->skillid,USESKILL_FAIL_LEVEL,0);
|
if (sd) clif_skill_fail(sd,ud->skillid,USESKILL_FAIL_LEVEL,0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(inf&BCT_ENEMY && (sc = status_get_sc(target)) &&
|
if(inf&BCT_ENEMY && (sc = status_get_sc(target)) &&
|
||||||
sc->data[SC_FOGWALL] &&
|
sc->data[SC_FOGWALL] &&
|
||||||
rnd()%100 < 75)
|
rnd() % 100 < 75) { //Fogwall makes all offensive-type targetted skills fail at 75%
|
||||||
{ //Fogwall makes all offensive-type targetted skills fail at 75%
|
if (sd) clif_skill_fail(sd, ud->skillid, USESKILL_FAIL_LEVEL, 0);
|
||||||
if (sd) clif_skill_fail(sd,ud->skillid,USESKILL_FAIL_LEVEL,0);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -646,6 +646,7 @@ typedef enum sc_type {
|
|||||||
SC_PARALYSIS,
|
SC_PARALYSIS,
|
||||||
SC_PAIN_KILLER,
|
SC_PAIN_KILLER,
|
||||||
|
|
||||||
|
|
||||||
#ifdef RENEWAL
|
#ifdef RENEWAL
|
||||||
SC_EXTREMITYFIST2,
|
SC_EXTREMITYFIST2,
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user