Offhand mindstar ignores skill damage multipliers

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
visage
Archmage
Posts: 345
Joined: Fri Jan 10, 2014 4:09 pm

Offhand mindstar ignores skill damage multipliers

#1 Post by visage »

It's intended and expected that mindstars ignore the offhand damage penalty.

What I didn't expect is that offhand mindstars ignore damage multipliers. Attack with Ice Claw and the offhand ice damage isn't multiplied by 2.3 for the 230% damage multiplier on that skill. Attack with Frenzy, and the offhand damage isn't reduced by whatever the current multiplier on Frenzy is. Mainhand mindstars work normally with skill damage multipliers.

This is not intended behavior, is it?

visage
Archmage
Posts: 345
Joined: Fri Jan 10, 2014 4:09 pm

Re: Offhand mindstar ignores skill damage multipliers

#2 Post by visage »

Looking through the code, I suspect that the correct behavior would be for getOffHandMult() to check no_offhand_penalty at the beginning of the function rather than at the end.

Does that seem right?

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Offhand mindstar ignores skill damage multipliers

#3 Post by HousePet »

I had thought this had been dealt with. :?
My feedback meter decays into coding. Give me feedback and I make mods.

visage
Archmage
Posts: 345
Joined: Fri Jan 10, 2014 4:09 pm

Re: Offhand mindstar ignores skill damage multipliers

#4 Post by visage »

Looks like no change for this made it into 1.4.7.

Am I correct in thinking that the correct fix is to insert after line 1736 of Combat.lua:

Code: Select all

if combat and combat.no_offhand_penalty then return mult or 1 end

Zeyphor
Archmage
Posts: 400
Joined: Fri Jan 04, 2013 3:20 am

Re: Offhand mindstar ignores skill damage multipliers

#5 Post by Zeyphor »

visage wrote:Looks like no change for this made it into 1.4.7.

Am I correct in thinking that the correct fix is to insert after line 1736 of Combat.lua:

Code: Select all

if combat and combat.no_offhand_penalty then return mult or 1 end
based entirely off of only that line, how would it know whether to return mult or 1? you'd want something to tell it to return the higher value too

visage
Archmage
Posts: 345
Joined: Fri Jan 10, 2014 4:09 pm

Re: Offhand mindstar ignores skill damage multipliers

#6 Post by visage »

Zeyphor wrote:
visage wrote:Looks like no change for this made it into 1.4.7.

Am I correct in thinking that the correct fix is to insert after line 1736 of Combat.lua:

Code: Select all

if combat and combat.no_offhand_penalty then return mult or 1 end
based entirely off of only that line, how would it know whether to return mult or 1? you'd want something to tell it to return the higher value too
I disagree. If you attack with (fully-leveled) Quake and a mindstar in the offhand, that offhand should do 210% damage, not 100% damage. The construction of the line mirrors line 1736, which establishes that there's no offhand penalty for ranged weapons -- similarly, mindstars should have no offhand penalty.

visage
Archmage
Posts: 345
Joined: Fri Jan 10, 2014 4:09 pm

Re: Offhand mindstar ignores skill damage multipliers

#7 Post by visage »

...and it looks like it now works in 1.4.8.

Yay, my Wyrmic now does the damage they're supposed to! Boo, my Cursed now does the damage they're supposed to! :)

Post Reply