verb/attack()
for(var/mob/enemies/M in get_step(src,src.dir))
if(istype(M,/mob/enemies)&&(waiter>0))
Attack(M)
else
sleep(attackspeed)
for(var/mob/players/P in get_step(src,src.dir))
if (istype(P,/mob/players)&&(waiter>0)&&(pvp == 1)&&(P.pvp == 1))//check both players have PVP active
PVPAttack(P)
else
sleep(attackspeed)
Bump(mob/enemies/M) //When the mob bumps into another mob
var mob/players/P
if (istype(M,/mob/enemies)&&(waiter>0)) //If the mob is an enemy...
Attack(M)
if (istype(P,/mob/players)&&(waiter>0)&&(pvp == 1)&&(P.pvp == 1))//check both players have PVP active
PVPAttack(P)// I think the prob is here and it sholud be PVPAttack(M)????
sleep(attackspeed)
Problem description:
The attack verb works fine but it wont work with bump when using directional keys no errors just no dmg.. Its been a long night and cant see the prob.. Please help anyone?
(Supaz)