ThePhrozenKeep / D2MOO

Reimplementation of the Diablo2 game coupled with patching facilities for modders.
MIT License
93 stars 29 forks source link

sub_6FCFEDD0 #139

Closed silvermane-HU closed 10 months ago

silvermane-HU commented 10 months ago

int32_t __fastcall sub_6FCFEDD0(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pTarget, int32_t nTimeout, int32_t nSkillId, int32_t nSkillLevel)
{
   ...
    const int32_t nRange = SKILLS_GetProgressiveSkillMissileId(pUnit, nSkillId);
    if (nRange <= 0)
    {
        return 1;
    }

    D2MissileStrc missileParams = {};
    missileParams.nMissile = nRange;
    missileParams.nRange = nTimeout;```

Naming for nRange seems out of place