Skip to content

Commit

Permalink
Invasion damage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Siile committed Sep 14, 2024
1 parent 73afae5 commit 5e641c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/server/entities/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,7 @@ bool CCharacter::TakeDamage(int From, int Weapon, int Dmg, vec2 Force, vec2 Pos)
float Electro = WeaponElectroAmount(Weapon);

// damage reduction for invasion
if (Dmg > 0 && GameServer()->m_pController->IsCoop() && !GetPlayer()->m_pAI)
if (Dmg > 0 && GameServer()->m_pController->IsCoop() && !m_IsBot)
Dmg = max(1, Dmg/2);

if (From == m_pPlayer->GetCID())
Expand Down
2 changes: 1 addition & 1 deletion src/game/server/mapgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ void CMapGen::GenerateLevel()
*/

{
for (int i = 0; i < 3; i++)
for (int i = 0; i < 3+Level/5; i++)
GenerateTurretStand(pTiles);
}

Expand Down

0 comments on commit 5e641c7

Please sign in to comment.