Fixes Grand Cross self damage (#6716)
* Fixes #6647. * Grand Cross will no longer display miss on self. Thanks to @eppc0330 and @secretdataz!
This commit is contained in:
parent
302168d1f3
commit
ce4aed26bb
@ -7294,8 +7294,6 @@ Body:
|
||||
DamageFlags:
|
||||
IgnoreAtkCard: true
|
||||
IgnoreFlee: true
|
||||
Flags:
|
||||
TargetSelf: true
|
||||
Range: 5
|
||||
Hit: Single
|
||||
HitCount: 1
|
||||
|
@ -7708,17 +7708,12 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
|
||||
struct Damage wd = battle_calc_weapon_attack(src,target,skill_id,skill_lv,mflag);
|
||||
|
||||
ad.damage = battle_attr_fix(src, target, wd.damage + ad.damage, s_ele, tstatus->def_ele, tstatus->ele_lv) * (100 + 40 * skill_lv) / 100;
|
||||
#ifdef RENEWAL
|
||||
if (src == target)
|
||||
ad.damage = 0;
|
||||
#else
|
||||
if(src == target) {
|
||||
if(src->type == BL_PC)
|
||||
ad.damage = ad.damage / 2;
|
||||
else
|
||||
ad.damage = 0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user