PDA

View Full Version : spellList.xml -- ;magic/Spell DS calculation error



SashaFierce
03-09-2016, 04:20 AM
;magic shows:

503: Thurfel's Ward - 1:17:50 - 33 bDS, 33 pDS


You swing a massive golvern warblade at Alastir!
AS: +161 vs DS: +378 with AvD: +36 + d100 roll: +41 = -140
A clean miss.
Roundtime: 5 sec.

Alastir recites a series of mystical phrases while raising his hands...
Alastir gestures.
Glowing specks of dark brown energy begin to spin around Alastir.

You swing a massive golvern warblade at Alastir!
AS: +161 vs DS: +412 with AvD: +36 + d100 roll: +98 = -117
A clean miss.
Roundtime: 5 sec.


412-378 = 34


I looked at the calculation in spell-list.xml and thought I fixed it by changing:

<bonus type='bolt-ds'>[20+((Spells.majorelemental-5)/4),20].max</bonus>
<bonus type='physical-ds'>[20+((Spells.majorelemental-5)/4),20].max</bonus>

to

<bonus type='bolt-ds'>[20+((Spells.majorelemental-3)/4),20].max</bonus>
<bonus type='physical-ds'>[20+((Spells.majorelemental-3)/4),20].max</bonus>

But after logging out and back in, it still showed the wrong number. (33 ds instead of 34.)