Bug - Fixed CHEAT CODE skills do not multi cast

ckb

Minion
Staff member
For $skill[CHEAT CODE: Invisible Avatar] and $skill[CHEAT CODE: Triple Size], Mafia will not cast multiples. Skill will only be cast once:

> cast 3 CHEAT CODE: Triple Size

You acquire an effect: Triple-Sized (20)
CHEAT CODE: Triple Size was successfully cast.

> ash use_skill(3,$skill[CHEAT CODE: Triple Size]);

You acquire an effect: Triple-Sized (20)
CHEAT CODE: Triple Size was successfully cast.
Returned: true
 

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member

VladYvhuce

Member
Using r20715, Mafia seems to have forgotten how to equip the glove if it's not equipped when you select the cheat code skills. Now, have to manually equip the glove to get it to work. On r20713, it wasn't having problems equipping the glove.
What showed up in GUI after hitting Max Cast for Triple Size:
"Cannot choose slot to equip Powerful Glove.
That skill is unavailable.
Skill ID not saved.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable.
That skill is unavailable."
 

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
This is likely to be a stochastic (or just misunderstood) bug rather than one attached to that specific revision
 

ckb

Minion
Staff member
I would guess that your bug is related to This problem (where the glove is not swapped out because it will cause a reduction in HP) and not a problem with the multi-cast change in r20701
 

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
For the record I thought this had been posted on the bug that ckb linked!
 

VladYvhuce

Member
Well, Triple Size casts multiple times, if the glove is equipped. But Mafia still won't multi-cast Invisible Avatar. You have to manually cast that each time.
 

VladYvhuce

Member
Ok. Wearing the glove already. Using KoLmafia v20.7 r20793. Tried max-casting Cheat Code: Invisible Avatar first, and it only cast it once. Then tried multi-casting 11 times, it only cast once. Then, a few more attempts, before I started a debug log. After starting the log, I first tried multi-casting from GUI, then using the Max Cast button from mafia's Skill Casting tab. Both only cast it once. Including debug log.
 

Attachments

  • DEBUG_20210708.txt
    15.7 KB · Views: 2

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
Fixed in r20794
 
Top