Issue information

Issue ID
#7073
Status
Working as Intended
Severity
None
Started
KyleZ
Feb 17, 2013 2:32
Last Post
malufett
Jun 12, 2013 15:48
Confirmation
N/A

KyleZ - Feb 17, 2013 2:32

[quote]

[img]http://db.irowiki.org/image/item/4365.png[/img] High Wizard Card [list]
[*]Magic attacks ignore the defense of all targets.
[*]Doubles the cast time of skills.
[*]Drains 2000 SP from the user when the headgear is unequipped.

[/list][/quote]

It seems that it's different from how Samurai Spector Card works towards physical attacks, which ignores both Hard and Soft Def.
High Wizard Card ignores ONLY Hard Mdef according to current version.

Is this intended or ignore-soft-mdef ignored - -

malufett - Feb 18, 2013 5:26

@src/map/battle.c[code=auto:0] if(sd) { //Damage bonuses if ((i = pc_skillatk_bonus(sd, skill_id))) ad.damage += ad.damage*i/100; if( (i = battle_adjust_skill_damage(src->m,skill_id)) ) MATK_RATE(i); //Ignore Defense? if (!flag.imdef && ( sd->bonus.ignore_mdef_ele & ( 1 << tstatus->def_ele ) || sd->bonus.ignore_mdef_race & ( 1 << tstatus->race ) || sd->bonus.ignore_mdef_race & ( is_boss(target) ? 1 << RC_BOSS : 1 << RC_NONBOSS ) )) flag.imdef = 1; } if(!flag.imdef){ defType mdef = tstatus->mdef; int mdef2= tstatus->mdef2; #ifdef RENEWAL if(tsc && tsc->data[SC_ASSUMPTIO]) mdef <<= 1; // only eMDEF is doubled #endif if(sd) { i = sd->ignore_mdef[is_boss(target)?RC_BOSS:RC_NONBOSS]; i+= sd->ignore_mdef[tstatus->race]; if (i) { if (i > 100) i = 100; mdef -= mdef * i/100; //mdef2-= mdef2* i/100; } } #ifdef RENEWAL /** * RE MDEF Reduction * Damage = Magic Attack * (1000+eMDEF)/(1000+eMDEF) - sMDEF **/ ad.damage = ad.damage * (1000 + mdef) / (1000 + mdef * 10) - mdef2; #else if(battle_config.magic_defense_type) ad.damage = ad.damage - mdef*battle_config.magic_defense_type - mdef2; else ad.damage = ad.damage * (100-mdef)/100 - mdef2; #endif } [/code]
as the code says it ignores both...


:meow:

KyleZ - Feb 18, 2013 6:07

[code=auto:0]if (i) { if (i > 100) i = 100; mdef -= mdef * i/100; //mdef2-= mdef2* i/100;[/code]

...
So, only mdef is ignored.. mdef2 isn't the same.

Practical tests root for my theory.

btw: assumptio increases def/mdef by 35% in pvp/woe instead of 100%.

This post has been edited by KyleZ on Feb 18, 2013 7:00

malufett - Feb 18, 2013 11:03

wait what are you pertaining to?? the partial ignore mdef or the 100% ignore mdef??

:meow:

KyleZ - Feb 18, 2013 12:14

I meant that Samurai Spector Card ignores both Def1 and Def2 100%, while High Wizard Card ignores ONLY mdef1 100%.

Although they have similar description

Samurai Spector Card: [b]Physical attacks ignore the defense[/b] of normal monsters and players.
High Wizard Card: [b]Magic attacks ignore the defense[/b] of all targets.

I feel sorry for mdef2, kind of mistreated LOL..

This post has been edited by KyleZ on Feb 18, 2013 12:18

malufett - Feb 18, 2013 12:54

High Wizard Card uses 'bIgnoreMDefRace' therefore 'flag.imdef = 1;' will trigger so it will ignore both hard and soft..

:meow:

KyleZ - Feb 18, 2013 13:36

errr..
Sorry Katrinn, you're the collateral damage.. LOL

I thought its function was bIgnoreMdefRate, which ignores ONLY hard mdef.

malufett, you design these bonuses, is it intended for bIgnoreMdefRate? If so, i have nothing to complain..

malufett - Feb 18, 2013 13:53

[quote]
malufett, you design these bonuses, is it intended for bIgnoreMdefRate? If so, i have nothing to complain..[/quote]
no I'm not...hahaha..wait I'll check kRO if what does partial ignore mdef does..I'll try using piercing staff..

:meow:

kyeme - Feb 18, 2013 14:20

[color=rgb(40,40,40)][font=helvetica, arial, sans-serif][color=rgb(51,51,51)]Too bad, the MVP card seller was removed in pRO Sakray Sorry i cant help :([/color][/font][/color]

This post has been edited by kyeme on Feb 18, 2013 14:23

KyleZ - Feb 18, 2013 14:40

@kyeme

thanks all the same.

@malufett

yeah, piercing staff sounds like a good idea, or KVM gears if you have them :P

Kenpachi - Apr 29, 2013 19:12

Since the item bonus itself is fine and this discussion is related to the mechanics behind the bonus I'll move this to the core section.