2 if (!Char
->CheckZap()) return false;
3 if (!Char
->PossessesItem(&item::IsZappable
)) {
4 ADD_MESSAGE("You have nothing to zap with, %s.", game::Insult());
7 item
*Item
= Char
->SelectFromPossessions(CONST_S("What do you want to zap with?"), &item::IsZappable
);
9 int Answer
= game::DirectionQuestion(CONST_S("In what direction do you wish to zap? [press a direction key or '.']"), false, true);
10 if (Answer
== DIR_ERROR
) return false;
11 if (Item
->Zap(Char
, Char
->GetPos(), Answer
)) {
12 Char
->EditAP(-100000/APBonus(Char
->GetAttribute(PERCEPTION
)));