diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-16 19:35:27 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-16 19:35:27 +0000 |
commit | 0065f7bc871bb17c6d90994759cbf6c7dcee451b (patch) | |
tree | e4dbbe7e238f47d7424414ff0fb50f261ae61989 /src/map/skill.c | |
parent | ee11b9de9b49e292fd6fb0fbf15100288eb2be38 (diff) | |
download | hercules-0065f7bc871bb17c6d90994759cbf6c7dcee451b.tar.gz hercules-0065f7bc871bb17c6d90994759cbf6c7dcee451b.tar.bz2 hercules-0065f7bc871bb17c6d90994759cbf6c7dcee451b.tar.xz hercules-0065f7bc871bb17c6d90994759cbf6c7dcee451b.zip |
- Modified the bNoMagicDamage/bNoWeaponDamage bonuses to be a 0-100 setting. Meaning you can do bonus bNoMagicDamage,50; To make all magic damage be reduced by half. This bonus stack, so two cards with bNoMagicDamage,50 will give magic immunity.
- Removed setting gtb_pvp_only and replaced it with gtb_sc_immunity which specifies the threshold before the bNoMagicDamage starts blocking support statuses as well. ie: gtb_sc_imunity: 75 will mean that "bonus bNoMagicDamage,70;" reduces magic damage by 70%, but does not blocks heal or support status, while "bonus bNoMagicDamage,80;" does.
- Updated GTB's card script to be "bonus bNoMagicDamage,100;"
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7212 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 2db04b974..48cab9cd4 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -2427,8 +2427,8 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int if (status_isdead(src) || (src != bl && status_isdead(bl))) return 1; - if (skillid && skill_get_type(skillid) == BF_MAGIC && - !battle_config.gtb_pvp_only && status_isimmune(bl)) { + if (skillid && skill_get_type(skillid) == BF_MAGIC && status_isimmune(bl)) + { if (sd) clif_skill_fail(sd,skillid,0,0); //GTB makes all targetted skills silently fail. return 1; @@ -3855,11 +3855,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in } break; - case BS_HAMMERFALL: /* ハンマーフォール */ - if(dstsd && dstsd->special_state.no_weapon_damage) { - clif_skill_nodamage(src,bl,skillid,skilllv,0); - break; - } + case BS_HAMMERFALL: clif_skill_nodamage(src,bl,skillid,skilllv, sc_start(bl,SC_STUN,(20 + 10 * skilllv),skilllv,skill_get_time2(skillid,skilllv))); break; @@ -4778,10 +4774,6 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in break; case NPC_LICK: - if (dstsd && dstsd->special_state.no_weapon_damage ) { - clif_skill_nodamage(src,bl,skillid,skilllv,0); - break; - } status_zap(bl, 0, 100); clif_skill_nodamage(src,bl,skillid,skilllv, sc_start(bl,type,(skilllv*5),skilllv,skill_get_time2(skillid,skilllv))); |