Aenimus
Member
Hello,
This is very easy to reproduce:
This causes a 1 round delay to realise what is being fought.
This fixes it:
In short: Mafia needs a round to realise the monster has changed, but if you have if conditions for monsters, it will reach that block before it realises the monster has changed with a return alone.
Is there any chance this could be handled?
Thanks!
This is very easy to reproduce:
Code:
void main(int rnd, monster mob, string pg) {
print("Entering main().");
print(`"We are fighting a {mob}."`, "red");
if (use_skill(1, $skill[Macrometeorite])) return;
}
This causes a 1 round delay to realise what is being fought.
This fixes it:
Code:
void main(int rnd, monster mob, string pg) {
print("Entering main().");
print(`"We are fighting a {mob}."`, "red");
if (use_skill(1, $skill[Macrometeorite])) {
twiddle();
return;
}
}
In short: Mafia needs a round to realise the monster has changed, but if you have if conditions for monsters, it will reach that block before it realises the monster has changed with a return alone.
Is there any chance this could be handled?
Thanks!
Last edited: