Skip to content

Commit

Permalink
Fixed wrong message on player attacking from protection zone (#534)
Browse files Browse the repository at this point in the history
Changed from "You may not attack a person in a protection zone." to "This action is not permitted in a protection zone."
  • Loading branch information
Solkrasm authored Nov 9, 2022
1 parent dfca8f8 commit 6c58e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/creatures/combat/combat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ ReturnValue Combat::canTargetCreature(Player* player, Creature* target)
if (!player->hasFlag(PlayerFlag_IgnoreProtectionZone)) {
//pz-zone
if (player->getZone() == ZONE_PROTECTION) {
return RETURNVALUE_YOUMAYNOTATTACKAPERSONWHILEINPROTECTIONZONE;
return RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE;
}

if (target->getZone() == ZONE_PROTECTION) {
return RETURNVALUE_YOUMAYNOTATTACKAPERSONINPROTECTIONZONE;
return RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE;
}

//nopvp-zone
Expand Down

0 comments on commit 6c58e6d

Please sign in to comment.