Bale
Minion
Yah, but you have to turn it back from an advevent id to a skill to use that function which is a trifle inconvenient.
Also, Sing and Disco Bandit delevelings work safely on a Procrastination Giant so it isn't just for spells that you need to check. Actually, only turtle tamer and seal clubber attack skills will get you in trouble so it is easiest to simply check for those. I wrote the following function.
Okay, that regexp is a teeny bit more complicated than you need since it includes funkslinging, but there's a reason for that being there since I just copy/pasted it from a function that needs to check funkslinging and it doesn't hurt anything here.
PS. Actually Harpoon and Summon Leviatuga are probably safe as well, but you don't encounter Procrastination Giants under the sea, so that will never be an issue. I think.
Also, Sing and Disco Bandit delevelings work safely on a Procrastination Giant so it isn't just for spells that you need to check. Actually, only turtle tamer and seal clubber attack skills will get you in trouble so it is easiest to simply check for those. I wrote the following function.
PHP:
boolean safe(advevent a) {
if(m != $monster[Procrastination Giant] || weapon_type(equipped_item($slot[weapon])) == $stat[Moxie])
return true;
matcher aid = create_matcher("(skill|use|attack|jiggle)(?: (\\d+),?(\\d+)?)?",a.id);
if(aid.find())
switch (aid.group(1)) {
case "jiggle":
case "use": return true;
case "skill": return !($classes[Seal Clubber,Turtle Tamer] contains aid.group(2).to_int().to_skill().class);
case "attack": return false;
}
return true;
}
Okay, that regexp is a teeny bit more complicated than you need since it includes funkslinging, but there's a reason for that being there since I just copy/pasted it from a function that needs to check funkslinging and it doesn't hurt anything here.
PS. Actually Harpoon and Summon Leviatuga are probably safe as well, but you don't encounter Procrastination Giants under the sea, so that will never be an issue. I think.
Last edited: