Hi I was trying to figure this out, but it is so hard XD. Please help me.
src/map/pc.cpp
if(pos & EQP_HAND_L) {
if (sd->status.shield && battle_getcurrentskill(&sd->bl) == LG_SHIELDSPELL)
unit_skillcastcancel(&sd->bl, 0); // Cancel Shield Spell if player swaps shields. << if I put " // " on this part it is working. but there is a bug on it, even without shield it can still use the skills.
Question
rizsu0107
Hi I was trying to figure this out, but it is so hard XD. Please help me.
src/map/pc.cpp
if(pos & EQP_HAND_L) {
if (sd->status.shield && battle_getcurrentskill(&sd->bl) == LG_SHIELDSPELL)
unit_skillcastcancel(&sd->bl, 0); // Cancel Shield Spell if player swaps shields. << if I put " // " on this part it is working. but there is a bug on it, even without shield it can still use the skills.
sd->status.shield = sd->weapontype2 = W_FIST;
pc_calcweapontype(sd);
clif_changelook(&sd->bl,LOOK_SHIELD,sd->status.shield);
}
But the behavior of Shrink(Skill Id: 1002) skill is normal. here's a sample video for a clear explanation.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.