ereinion
Member
It seems that my current mp is not updated before my post-adventure script runs, unless I am misunderstanding something really obvious. It does, however, update somewhere after that point, so not really a huge issue. I dunno if it may actually be a feature be a feature because there may be events that restores mp after that point? Nevertheless, I would really appreciate it if this update happened a bit earlier, it would make my mp-management a little bit easier 
	
	
	
		

				
			
		Code:
	
	void manaburn() {
    float mp_target = to_float(get_property("mpAutoRecoveryTarget"));
    print("my_mp: " + my_mp() + " - my_maxmp: " + my_maxmp() +  " - 0.8*my_maxmp: " + 0.8*my_maxmp());
    print(to_boolean(my_mp() >= 0.8*my_maxmp()));
    print(to_boolean(mp_target < 0.8));
    if (my_mp() >= 0.8*my_maxmp() && mp_target < 0.8) {
        print("Test");
        if (my_path() == "Avatar of Boris" && my_hp() < 0.9*my_maxhp()) {
            print(min(to_int((my_maxhp()-my_hp())/1.5), to_int(my_mp() - my_maxmp()*mp_target)), "blue");
            use_skill(min(to_int((my_maxhp()-my_hp())/1.5), to_int(my_mp() - my_maxmp()*mp_target)), $skill[Laugh it Off]);
        }
        cli_execute("burn " + to_int(my_mp() - my_maxmp()*mp_target));
    }
}
	