I'm making a pokemon server, and i added the following code in combat.cpp so that the player could not attack your summon.
All right, the program was compiled, but when i try to attack a wild pokemon, i receive a crash. If i try to attack my pokemon, all right, i can't.
Someone help? Thanks!
Code:
if(attackerPlayer == target->getMaster())
return RET_YOUMAYNOTATTACKTHISCREATURE;
All right, the program was compiled, but when i try to attack a wild pokemon, i receive a crash. If i try to attack my pokemon, all right, i can't.
Someone help? Thanks!
Last edited: