Bug - Fixed After ascension kol thinks you are an astral spirit until restart.

taltamir

Member
Code:
[COLOR=olive]
> ash my_class()[/COLOR]

Returned: Astral     Spirit
primestat => Muscle
this happens on all my account after ascending in r20482. Tested in both greygoo and kolhs paths.

`refresh all` does not fix this
visiting the char sheet does not fix this
restarting mafia does fix it.
closing mafia (to get back to the launcher) and then logging in again from the launcher does fix it.
 
Last edited:

MCroft

Developer
Staff member
Out of band, taltamir tells me he ascended from class 'X' to class 'X'.

My theory is that it's caused by r20482. It probably needs some additional condition to check that the character isn't freshly ascended, but I can't see exactly what that would be.

Code:
public static final void setClassName( final String classname )
{
	KoLCharacter.classname = classname;
	String originalClassType = KoLCharacter.classtype;
	String newClassType = KoLCharacter.getClassType();

	// We can use == on Strings since getClassType will return a
	// constant string. It would be cleaner to have an enum.
	if ( originalClassType != newClassType )
	{
		KoLCharacter.classtype = newClassType;
		KoLCharacter.tripleReagent = KoLCharacter.classtype == KoLCharacter.SAUCEROR;

		if ( KoLCharacter.classtype == KoLCharacter.ASTRAL_SPIRIT )
		{
			return;
		}

		// If we have an actual class, we have a mainstat.
		// Reset concoction mainstat gains to reflect this.
		ConcoctionDatabase.resetConcoctionStatGains();

		// Allow or disallow special fight actions
		FightRequest.initialize();
	}
}
 

taltamir

Member
i will test r20481 as soon as one of my accounts ascends. which is probably going to be 2 days from now
 

taltamir

Member
tested on several accounts. can confirm the issue is limited to r20482 and is not found in r20481
also independently confirmed by others on discord
 
Top