Jump to content
  • 0

No delay after Autospells


Question

Posted

Good afternoon,

 

I have a question. I'm using the last rAthena in pre-re. When I use autospells (for exemple auto casting Metero Storm with Bloody Knight Card), a delay is applied. How can I delete this delay only for autospells ?

Thank you.

 

1 answer to this question

Recommended Posts

  • 0
Posted

You'll have to work a bit with the code.

 

I give you one example in skill.c, find:

	// Autospell when attacking	if( sd && !status_isdead(bl) && sd->autospell[0].id )

If you scroll a bit further down inside that block you'll see:

			//Set canact delay. [Skotlex]			ud = unit_bl2ud(src);			if (ud) {				rate = skill_delayfix(src, skill, autospl_skill_lv);				if (DIFF_TICK(ud->canact_tick, tick + rate) < 0){					ud->canact_tick = max(tick + rate, ud->canact_tick);					if ( battle_config.display_status_timers && sd )						clif_status_change(src, SI_ACTIONDELAY, 1, rate, 0, 0, 0);				}			}

If you remove that part, you have removed aftercast delay for autospells when attacking. Now you need to do the same for autospell when being hit. The code to be removed actually looks identical so you should be able to find it easily, just search for the comment from Skotlex.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...