Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move skill_onskillusage from skill_attack to skill_castend #8266

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vstumpf
Copy link
Member

@vstumpf vstumpf commented Apr 21, 2024

Fixes #8256

  • Server Mode: Both
  • Description of Pull Request: Move skill_onskillusage from skill_attack to skill_castend_damage_id

@vstumpf vstumpf added component:core A fault that lies within the main framework of rAthena mode:renewal A fault that exists within the renewal mode mode:prerenewal A fault that exists within the pre-renewal mode status:code-review Pull Request that requires reviewing from other developers before being pushed to master labels Apr 21, 2024
@@ -7181,7 7179,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, uint
{// consume arrow on last invocation to this skill.
battle_consume_ammo(sd, skill_id, skill_lv);
}

skill_onskillusage(sd,bl,skill_id,skill_lv);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be skill_onskillusage(sd, bl, skill_id, tick); ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes correct!

@@ -7181,7 7179,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, uint
{// consume arrow on last invocation to this skill.
battle_consume_ammo(sd, skill_id, skill_lv);
}

skill_onskillusage(sd,bl,skill_id,skill_lv);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes correct!

src/map/skill.cpp Outdated Show resolved Hide resolved
src/map/skill.cpp Outdated Show resolved Hide resolved
@@ -4138,8 4138,6 @@ int64 skill_attack (int attack_type, struct block_list* src, struct block_list *
}
break;
}
if( sd )
skill_onskillusage(sd, bl, skill_id, tick);
Copy link

@Badarosk0 Badarosk0 May 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This solves the problem, but seems to generate another one.
This bonus has stopped working:

bonus4 bAutoSpellOnSkill,"RK_DRAGONBREATH_WATER","NPC_ACIDBREATH",getskilllv("RK_DRAGONBREATH_WATER"),1000;
bonus4 bAutoSpellOnSkill,"RK_DRAGONBREATH","NPC_THUNDERBREATH",getskilllv("RK_DRAGONBREATH"),1000;
                     

Probably a skill calling another skill of a different type fails?

image
I need this modification to work.

Copy link

@Nicapone1 Nicapone1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly, my only problem is that one skill breaks the animation of the other allowing them to spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:core A fault that lies within the main framework of rAthena mode:prerenewal A fault that exists within the pre-renewal mode mode:renewal A fault that exists within the renewal mode status:code-review Pull Request that requires reviewing from other developers before being pushed to master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bAutoSpellOnSkill incorrectly functioning
6 participants