Jump to content
  • 0

Injustice "NO STOP" Sonic Blow when attacking


Question

Posted

Is this the right line for editing it? I add "//" it doesn't work lol :)) I don't know how to remove this can anyone help me? 

 

I want the Injustice Card Auto Cast Sonic Blow will not stop even attacking (/nc)

 

			if (skill == AS_SONICBLOW)
				pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
			else if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
				type = CAST_GROUND;

 

 

5 answers to this question

Recommended Posts

  • 1
Posted

 

            if (skill == AS_SONICBLOW)
                pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.

            else if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;

 

 

it becomes:

 

 

           /* if (skill == AS_SONICBLOW)
                pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking. */

            else if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;

 

save then recompile :)

This will most likely produce errors. You use an else if without an if.

            if (skill == AS_SONICBLOW)
                pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.

            else if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;

 

to

            if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;

 

could work.

  • 0
Posted
On 8/21/2013 at 7:20 PM, DeadlySilence said:

This will most likely produce errors. You use an else if without an if.


            if (skill == AS_SONICBLOW)
                pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.

            else if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;

 

to


            if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;

 

could work.

scanner.h:208:17: warning: type of ‘libconfig_yy_scan_string’ does not match original declaration [-Wlto-type-mismatch]
scanner.c:1964:17: note: ‘libconfig_yy_scan_string’ was previously declared here
scanner.c:1964:17: note: code may be misoptimized unless -fno-strict-aliasing is used
scanner.h:202:6: warning: type of ‘libconfig_yy_delete_buffer’ does not match original declaration [-Wlto-type-mismatch]
scanner.c:1743:10: note: ‘libconfig_yy_delete_buffer’ was previously declared here
scanner.c:1743:10: note: code may be misoptimized unless -fno-strict-aliasing is used
make[1]: Leaving directory '/root/ra/src/map'
building conf/import, conf/msg_conf/import and db/import folder...

Posted

 

            if (skill == AS_SONICBLOW)
                pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.

            else if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;

 

 

it becomes:

           /* if (skill == AS_SONICBLOW)
                pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking. */

            else if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;

 

save then recompile :)

 

yeah that will more or less produce errors thanks for pointing it out :)

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...