Skip to content

Commit

Permalink
Merge pull request #378 from ao-org/fix-user-kill-pet
Browse files Browse the repository at this point in the history
fix can attack npc test to prevent attacking pets on safe areas
  • Loading branch information
RecoX authored Sep 8, 2023
2 parents 5dc754c + add7d34 commit 2ec7f7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Codigo/MODULO_NPCs.bas
Original file line number Diff line number Diff line change
Expand Up @@ -2062,6 +2062,10 @@ On Error GoTo UserCanAttackNpc_Err
Exit Function
End If
End If
If IsPet And MapInfo(UserList(UserIndex).pos.Map).Seguro Then
UserCanAttackNpc = eSafeArea
Exit Function
End If
' El seguro es SOLO para ciudadanos. La armada debe desenlistarse antes de querer atacar y se checkea arriba.
' Los criminales o Caos, ya estan mas alla del seguro.
164 If Status(UserIndex) = Ciudadano Then
Expand Down

0 comments on commit 2ec7f7b

Please sign in to comment.