diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-14 15:35:25 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-14 15:35:25 +0000 |
commit | 987aa586c48f83830f8c457d5cfe49361acb028a (patch) | |
tree | dfaffb829dadf841dcb21443915c49f208e14d95 /src | |
parent | 50df12f5c8f485b12944182a53c43df975edd4cb (diff) | |
download | hercules-987aa586c48f83830f8c457d5cfe49361acb028a.tar.gz hercules-987aa586c48f83830f8c457d5cfe49361acb028a.tar.bz2 hercules-987aa586c48f83830f8c457d5cfe49361acb028a.tar.xz hercules-987aa586c48f83830f8c457d5cfe49361acb028a.zip |
- blocked again skill usage during marionette.
- Some minor code cleanups.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7162 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/status.c | 6 | ||||
-rw-r--r-- | src/map/unit.c | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/src/map/status.c b/src/map/status.c index 87457f2dd..7872771b9 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -896,7 +896,7 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int (src->type != BL_PC || ((TBL_PC*)src)->skillitem != skill_num) ) { //Skills blocked through status changes... if (!flag && ( //Blocked only from using the skill (stuff like autospell may still go through -// (sc->data[SC_MARIONETTE].timer != -1 && skill_num != CG_MARIONETTE) || + (sc->data[SC_MARIONETTE].timer != -1 && skill_num != CG_MARIONETTE) || (sc->data[SC_MARIONETTE2].timer != -1 && skill_num == CG_MARIONETTE) || sc->data[SC_SILENCE].timer != -1 || sc->data[SC_STEELBODY].timer != -1 || @@ -3817,7 +3817,7 @@ struct status_change *status_get_sc(struct block_list *bl) case BL_NPC: return &((TBL_NPC*)bl)->sc; case BL_HOMUNCULUS: //[blackhole89] - return &((struct homun_data*)bl)->sc; + return &((TBL_HOMUNCULUS*)bl)->sc; } return NULL; } @@ -3890,7 +3890,7 @@ int status_get_sc_def(struct block_list *bl, int type) break; case SC_CURSE: if (status->luk > status_get_lv(bl)) - sc_def = 10000; //Special property: inmunity when luk is greater than level + return 10000; //Special property: inmunity when luk is greater than level else sc_def = 300 +100*status->luk; break; diff --git a/src/map/unit.c b/src/map/unit.c index e1b42c101..5ec465d43 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -529,10 +529,6 @@ int unit_warp(struct block_list *bl,int m,short x,short y,int type) map_addblock(bl);
clif_spawn(bl);
-//This is broken because the mob already was changed from map.
-//Fortunately, the slave ai will make them chase their master automatically
-// if (bl->type == BL_MOB)
-// mob_warpslave(bl,AREA_SIZE);
skill_unit_move(bl,gettick(),1);
return 0;
}
@@ -838,7 +834,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int switch(skill_num){
case ALL_RESURRECTION:
if(battle_check_undead(tstatus->race,tstatus->def_ele)){
- temp=1;
+ temp=1;
casttime = skill_castfix(src, PR_TURNUNDEAD, skill_lv);
}
break;
@@ -1281,7 +1277,6 @@ static int unit_attack_timer_sub(struct block_list* src, int tid, unsigned int t if(sd && sd->status.pet_id > 0 && sd->pd && battle_config.pet_attack_support)
pet_target_check(sd,target,0);
-
map_freeblock_unlock();
ud->attackabletime = tick + sstatus->adelay;
|