From 314e9229f7e33d3d15d1052af3e72dc5cfd502ad Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 19 Apr 2015 14:21:09 -0400 Subject: fix bad condition --- src/map/magic-stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/magic-stmt.cpp b/src/map/magic-stmt.cpp index fdeac3a..4d8330a 100644 --- a/src/map/magic-stmt.cpp +++ b/src/map/magic-stmt.cpp @@ -773,7 +773,7 @@ int op_injure(dumb_ptr env, Slice args) if (target->bl_type == BL::PC && !target->bl_m->flag.get(MapFlag::PVP) - && (caster->bl_type != BL::PC) + && (caster->bl_type == BL::PC) && ((caster->is_player()->state.pvpchannel > 1) && (target->is_player()->state.pvpchannel != caster->is_player()->state.pvpchannel))) return 0; /* Cannot damage other players outside of pvp */ -- cgit v1.2.3-60-g2f50