Decompile fn_08485 (CSkillAction_DK_DRAGONIC_BREATH::OnSkillHit)
Batch #17763 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_08485 CSkillAction_DK_DRAGONIC_BREATH::OnSkillHit: logic confirmed by peer review Peer-reviewed-by: alisonrag, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
a199698417
commit
a2ec29978a
1 changed files with 4 additions and 4 deletions
|
|
@ -2236,10 +2236,10 @@ void CSkillAction_DK_DRAGONIC_BREATH::OnSkillHit(int level, CGameActor* source,
|
|||
break;
|
||||
}
|
||||
|
||||
const int first = std::rand();
|
||||
const int second = std::rand();
|
||||
const int jitterX = std::max(second % 10, 0);
|
||||
const int jitterY = std::max(first % 10, 0);
|
||||
const int first = std::rand() % 10;
|
||||
const int second = std::rand() % 10;
|
||||
const int jitterX = std::max(second, 0);
|
||||
const int jitterY = std::max(first, 0);
|
||||
effect->position[0] = static_cast<float>((i % 2) * 10 - jitterX) + source->render.position.x;
|
||||
effect->position[2] = source->render.position.z + 0.0f;
|
||||
effect->position[1] = static_cast<float>((i % 4) / 2 * 10 - jitterY) + source->render.position.y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue