Skip to content

Commit

Permalink
Reduce fireball velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Feb 26, 2024
1 parent 040d630 commit 8010b90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/missiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,14 @@ void AddFireball(Missile &missile, AddMissileParameter &parameter)
if (missile.position.start == dst) {
dst += parameter.midir;
}

int sp = 16;

// PVP REBALANCE: Reduce fireball velocity by 4 in arenas.
if (missile.sourcePlayer() != nullptr) {
if (missile.sourcePlayer()->isOnArenaLevel())
sp = 8;
}
if (missile._micaster == TARGET_MONSTERS) {
sp += std::min(missile._mispllvl * 2, 34);
Player &player = Players[missile._misource];
Expand Down

0 comments on commit 8010b90

Please sign in to comment.