HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Odd behaviour for SetHeroLevel

02-17-2008, 11:34 PM#1
Themerion
Collapse JASS:
        call BJDebugMsg("RLevel: "+I2S(myVar))
        call BJDebugMsg("H1Level: "+I2S(GetHeroLevel(myHero)))
        call SetHeroLevel(myHero,myVar,false)
        call BJDebugMsg("H2Level: "+I2S(GetHeroLevel(myHero)))

This gives me the output:

Collapse JASS:
RLevel: 1
H1Level: 1
H2Level: 2

Is this a known... "bug"...? Otherwise, does it act the same for you (ie, is it reproduceable)?
02-18-2008, 04:58 AM#2
Pyrogasm
Does the hero actually change level or does the output just say it did?
02-18-2008, 11:32 AM#3
Themerion
Yeah, it changed level. Really odd, since that's the only call to SetHeroLevel which I have.

Now, it's not a big deal. I'll just add an if-statement for level 1. Just wanted to know if this is something which usually happens, or if it's just something odd happening in the map.