diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-18 17:13:33 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-18 17:13:33 +0000 |
commit | 9931cc22ecf92962c9a3218d075b55a44152862a (patch) | |
tree | b3c9198422ab8ae06e2a54c468943ec8cd509c66 /src | |
parent | aff8dade6593463301abee054981a4ea21fff273 (diff) | |
download | hercules-9931cc22ecf92962c9a3218d075b55a44152862a.tar.gz hercules-9931cc22ecf92962c9a3218d075b55a44152862a.tar.bz2 hercules-9931cc22ecf92962c9a3218d075b55a44152862a.tar.xz hercules-9931cc22ecf92962c9a3218d075b55a44152862a.zip |
- Figured out a better way to make TATAMIGAESHI attack only on the instant it is placed down.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8350 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/skill.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index f8b946eb0..af6a337ca 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6243,7 +6243,7 @@ int skill_castend_pos2 (struct block_list *src, int x, int y, int skillid, int s } break; case NJ_TATAMIGAESHI: - sc_start(src,type,100,skilllv,skill_get_time(skillid,skilllv)); + sc_start(src,type,100,skilllv,skill_get_time2(skillid,skilllv)); skill_unitsetting(src,skillid,skilllv,src->x,src->y,0); break; @@ -6780,6 +6780,13 @@ struct skill_unit_group *skill_unitsetting (struct block_list *src, int skillid, unit->bl.x,unit->bl.y,group->bl_flag,&unit->bl,gettick(),1); } } + if (skillid == NJ_TATAMIGAESHI) + { //Disable it, since it should do instant damage + //(which was done in the map_foreachincell call up there) [Skotlex] + group->target_flag=BCT_NOONE; + group->bl_flag= 0; + } + if (!group->alive_count) { //No cells? Something that was blocked completely by Land Protector? skill_delunitgroup(src, group); @@ -7173,19 +7180,6 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns } case UNT_TATAMIGAESHI: - { - /* NJ_TATAMIGAESHI has to work like that (has to be instant, instead of during 1s), according to Tharis' last video - Did not find a better way to do it (even in traps' code) */ - - struct skill_unit_group *sug; // better name needed - - if ( (sug = map_find_skill_unit_oncell(bl,bl->x,bl->y,NJ_TATAMIGAESHI,NULL)->group) != NULL ) - { - if ( DIFF_TICK(gettick(), sug->tick) <= skill_get_time2(sg->skill_id, sg->skill_lv) ) - skill_attack(BF_WEAPON,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0); - } - break; - } case UNT_DEMONSTRATION: skill_attack(BF_WEAPON,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0); break; |