Hi
Im trying to prevent a player from bashing a mob that is a giant, unless you yourself is a giant.
Ok I can bash a mob that is not a giant, and I get the correct message if I try to bash a NPC who is a giant when im not.
But if I try to bash a player who is not half giant, then I still get told that Im not tall enough to bash a giant.
What is wrong ?
if ((GET_CLASS(vict) == CLASS_NPC_GIANT || GET_RACE(vict) == RACE_HALF_GIANT) && (GET_RACE(ch) != RACE_HALF_GIANT)) {
send_to_char(ch, "You aren't tall enough to bash a giant!\r\n");
return;
}