From 0065f7bc871bb17c6d90994759cbf6c7dcee451b Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 16 Jun 2006 19:35:27 +0000 Subject: - 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 --- src/map/status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index 7e7cadfb6..5cfc34f64 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -3670,8 +3670,8 @@ int status_isimmune(struct block_list *bl) { struct status_change *sc =status_get_sc(bl); if (bl->type == BL_PC && - ((struct map_session_data *)bl)->special_state.no_magic_damage) - return 1; + ((TBL_PC*)bl)->special_state.no_magic_damage) + return ((TBL_PC*)bl)->special_state.no_magic_damage > battle_config.gtb_sc_immunity; if (sc && sc->count && sc->data[SC_HERMODE].timer != -1) return 1; return 0; -- cgit v1.2.3-70-g09d2