Skip to content

Commit

Permalink
Excluded fightclub-interiors from godmode
Browse files Browse the repository at this point in the history
Added a check so godmode is NOT enabled (and thus disabled) while in the
warehouse while in fightclub.
  • Loading branch information
xhoogland committed Apr 14, 2016
1 parent e783557 commit 8a5a767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pawn/Features/Deathmatch/DamageManager.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float: fX, Float:
return 0;

// Players inside interiors (including VIP room), should not be hurt.
if (GetPlayerInterior(hitid) != 0 || LegacyIsPlayerInVipRoom(hitid) == true)
if ((GetPlayerInterior(hitid) != 0 || LegacyIsPlayerInVipRoom(hitid) == true)
&& !CFightClub__IsPlayerFighting(playerid))
return 0;
}

Expand Down

1 comment on commit 8a5a767

@xhoogland
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #133.

Please sign in to comment.