Spells make 0 DMG

Forum rules
NO LONGER BEING MAINTAINED!
Post Reply
User avatar
Virtualchronos
Posts: 53
Joined: Wed Dec 12, 2012 8:45 am

Spells make 0 DMG

Post by Virtualchronos » Wed Mar 06, 2013 12:28 pm

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 ?

The_Kuti
Posts: 28
Joined: Sat Oct 06, 2012 6:19 am

Re: Spells make 0 DMG

Post by The_Kuti » Wed Mar 06, 2013 2:28 pm

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.

User avatar
Virtualchronos
Posts: 53
Joined: Wed Dec 12, 2012 8:45 am

Re: Spells make 0 DMG

Post by Virtualchronos » Wed Mar 06, 2013 2:45 pm

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

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Spells make 0 DMG

Post by PrBlahBlahtson » Wed Mar 06, 2013 3:30 pm

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.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Spells make 0 DMG

Post by kjLotus » Wed Mar 06, 2013 3:54 pm

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 :)

Metalfiiish
Developer
Posts: 176
Joined: Tue Jul 31, 2012 7:21 am

Re: Spells make 0 DMG

Post by Metalfiiish » Wed Mar 06, 2013 6:38 pm

Its like an echo that never gets heard eh Pr? (Tesy..your..code...

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Spells make 0 DMG

Post by PrBlahBlahtson » Wed Mar 06, 2013 8:05 pm

Turns out that rebuilding the core fixes this issue.

User avatar
Virtualchronos
Posts: 53
Joined: Wed Dec 12, 2012 8:45 am

Re: Spells make 0 DMG

Post by Virtualchronos » Thu Mar 07, 2013 2:12 pm

I tried to rebuild the server and it doesn't worked for me


Edit :
After many rebuild it finaly worked

Post Reply