LandSandBoat / server

:sailboat: LandSandBoat - a server emulator for Final Fantasy XI
https://landsandboat.github.io/server/
GNU General Public License v3.0
298 stars 602 forks source link

🐛 ToAU mission Raubahn Eyes on Me damage is... kinda sus #5193

Open TeoTwawki opened 8 months ago

TeoTwawki commented 8 months ago

I affirm:

OS / platform the server is running (if known)

Windows Server 2019

Branch affected by issue

base

Steps to reproduce

Flag mission, Fight Raubahn, wait for cast, see this:

image

I'm told its not actually doing that damage, just says it is.

Expected behavior

Believable damage and accurately reflected in log.

TeoTwawki commented 8 months ago

possibly related to players not having a value for m_ecosystem (probably should actually, but only mobs have this right now)

Possible fix (untested!) :

-- Monster correlation
local correlationMultiplier = 0
if not target:isPC() then
    correlationMultiplier = calculateCorrelation(params.ecosystem, target:getEcosystem(), caster:getMerit(xi.merit.MONSTER_CORRELATION))
end
almuth150 commented 8 months ago

Does this affect other BLU magical spells? The server I play on has this issues for players casting such spells, but I assumed it was caught and fixed by now since it's been a little while since they've updated.

TeoTwawki commented 8 months ago

if a mob is the caster instead of a player, I would bet yes.

situation I am looking at is specifically a mob casting blue magic on a player. Not a player casting it. Any issues with player casting have nothing to do with this issue.