Page 1 of 1
Spells make 0 DMG
Posted: Wed Mar 06, 2013 12:28 pm
by Virtualchronos
I tried to fight mobs with magic but I make 0 DMG with offensive spells.
On the server the log is like this :
luautils :: Onspellscast: .\scripts/global/magic.lua:493: attemps to call method 'isAoE (a nil value)
did I done something wrong or is this a Maj who need fix ?
Re: Spells make 0 DMG
Posted: Wed Mar 06, 2013 2:28 pm
by The_Kuti
its only a GUESS but i think there is a missing half of statement what to compare the spell:isAoe() with, i mean "spell:isAoe() == true/false/0/1/whatever". Revert your magic.lua to rev2879 solved the problem for me.
Re: Spells make 0 DMG
Posted: Wed Mar 06, 2013 2:45 pm
by Virtualchronos
don't know... I tried your advice it worked for me too ^^''
Big thanks to you !!!
Well we just have to wait a new fix now
Re: Spells make 0 DMG
Posted: Wed Mar 06, 2013 3:30 pm
by PrBlahBlahtson
Actually, the missing "== true" isn't mandatory, which you would have known wasn't the problem if you'd tried it. You can omit the condition if you're specifically looking for a not-false condition. Reverting to 2879 removed the entire code block, which is why that "fixed" the issue.
Re: Spells make 0 DMG
Posted: Wed Mar 06, 2013 3:54 pm
by kjLotus
PrBlahBlahtson wrote:Actually, the missing "== true" isn't mandatory, which you would have known wasn't the problem if you'd tried it. You can omit the condition if you're specifically looking for a not-false condition. Reverting to 2879 removed the entire code block, which is why that "fixed" the issue.
is basically a mean way of saying "that's actually not the case, unfortunately, but i'm mad about the actual problem, which will hopefully get fixed tonight by the guy who made it"
no need to be snappy here
Re: Spells make 0 DMG
Posted: Wed Mar 06, 2013 6:38 pm
by Metalfiiish
Its like an echo that never gets heard eh Pr? (Tesy..your..code...
Re: Spells make 0 DMG
Posted: Wed Mar 06, 2013 8:05 pm
by PrBlahBlahtson
Turns out that rebuilding the core fixes this issue.
Re: Spells make 0 DMG
Posted: Thu Mar 07, 2013 2:12 pm
by Virtualchronos
I tried to rebuild the server and it doesn't worked for me
Edit :
After many rebuild it finaly worked