Skip to content

Commit

Permalink
fix build (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
pangolp authored Sep 22, 2024
1 parent 32a9575 commit db16f47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PvPScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class PvPScript : public PlayerScript

bool CheckConditions(Player* killer, Player* killed)
{
if (!killer || !killed)
return false;

//if killer has same IP as death player do not drop loot as its cheating!
if (spawnchestIP)
if (killer->GetSession()->GetRemoteAddress() == killed->GetSession()->GetRemoteAddress())
Expand Down

0 comments on commit db16f47

Please sign in to comment.