mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Condition gaurd for trapping yourself
No longer able to amp up yourself
This commit is contained in:
parent
8b5cb72b18
commit
edf98ba7fc
1 changed files with 1 additions and 1 deletions
|
|
@ -697,7 +697,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
if (K_TryPickMeUp(special, toucher, false))
|
||||
return;
|
||||
|
||||
if (special->target && !P_MobjWasRemoved(special->target) && toucher->player)
|
||||
if (special->target && !P_MobjWasRemoved(special->target) && toucher->player && (toucher->player != (special->target->player))) // Last condition here is so you can't get your own amps
|
||||
{
|
||||
K_SpawnAmps(special->target->player, K_PvPAmpReward(20, special->target->player, toucher->player), toucher);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue