Page 1 of 1

ConversionSpellHandler & MagicConversionSpellHandler

PostPosted: Wed Nov 14, 2012 8:48 pm
by scorpargain
hi all
i have find a hudge error on the orriginal Conversion.cs

i have fix it, and now that display the real damage done with absorb on attacker and the Result damage on target.

exemple for 5% conversion

the attacker do 500 damage and the conversion spell absorbe 50 damage
the attacked see in log xxx attack you for 450 damage
you gain 50 converted mana
you gain 50 converted endurence

when you make a spell the % of conversion need to be a value not a damage.

Re: ConversionSpellHandler & MagicConversionSpellHandler

PostPosted: Thu Nov 15, 2012 9:37 am
by Graveen
Thank you. What was the original issue ? :)

Re: ConversionSpellHandler & MagicConversionSpellHandler

PostPosted: Sat Nov 17, 2012 8:50 am
by scorpargain
look like close too

when i have try the previous conversion i have add message to attacker and message to player for display all variable, and nost of time got 0 for answer, so not good.

with this version you got a value.

i have test with 90% conversion for see

and the damage on the attacker screen say : you hit for 500 but a magical barrier abs 450 damage.

on attacked screen you see player attack you for 50 damage, you gain 450 mana from conversion and 450 endurence from conversion

Re: ConversionSpellHandler & MagicConversionSpellHandler

PostPosted: Sat Nov 17, 2012 12:23 pm
by geshi
The current Conversion works fine if you set the spell damage to the percent...

The only problem with it is that it does not reduce the damage like it should.. since the
Code: Select all
ad.Damage -= damageConverted;
line is in an if statement which will never fire, it just needs to be moved down about 4 lines then it will all be okay..