Decompile fn_08670 (CSkillAction_MT_POWERFUL_SWING::OnSkillEffect)
Batch #17437 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_08670 CSkillAction_MT_POWERFUL_SWING::OnSkillEffect: logic confirmed by peer review Peer-reviewed-by: eAthena, 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
8d0f4bc05c
commit
5318a6a08d
1 changed files with 4 additions and 2 deletions
|
|
@ -204,12 +204,14 @@ void CSkillAction_MT_POWERFUL_SWING::OnSkillEffect(int level, CGameActor* source
|
|||
}
|
||||
|
||||
if (!g_serviceOptions.Get(229)) {
|
||||
CEffect* effect = g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("powerful_swing_bottom"), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
||||
EffectLists* effects = g_effectMgr;
|
||||
CEffect* effect = effects->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("powerful_swing_bottom"), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
||||
if (effect) {
|
||||
effect->SetAngle(ScreenAngle(&source->render.position.x, &target->render.position.x, static_cast<CGameMode*>(g_modeMgr.GetGameMode())->camera->frame.view.values) + 180.0f);
|
||||
}
|
||||
}
|
||||
CEffect* effect = g_effectMgr->Spawn(target->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("powerful_swing"), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
||||
EffectLists* effects = g_effectMgr;
|
||||
CEffect* effect = effects->Spawn(target->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId("powerful_swing"), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
||||
if (effect) {
|
||||
effect->SetFlipX(source->render.previousAnimation % 8 >= 4);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue