Issue information

Issue ID
#5649
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Apr 26, 2012 18:58
Last Post
Hercules Elf Bot
May 18, 2012 11:40
Confirmation
Yes (4)
No (0)

Hercules Elf Bot - Apr 26, 2012 18:58

Originally posted by [b]zandotc[/b]
[size=5][color=#282828][font=helvetica, arial, sans-serif]If you catch a monster the monster still can attack you if you are in range.[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]Also, while being under the effect you can move.[/font][/color][/size]

[size=5]Revision 15979[/size]

This post has been edited by zandotc on Apr 26, 2012 19:14

Hercules Elf Bot - Apr 28, 2012 3:39

Originally posted by [b]Igniz[/b]
Temporal fix....

clif.c
Find clif_parse_ActionRequest_sub:
[CODE]
if (sd->sc.count &&
(sd->sc.data[SC_TRICKDEAD] ||
sd->sc.data[SC_AUTOCOUNTER] ||
sd->sc.data[SC_BLADESTOP]))
return;
[/CODE]
Reemplaze
[CODE]
if (sd->sc.count &&
(sd->sc.data[SC_TRICKDEAD] ||
sd->sc.data[SC_AUTOCOUNTER] ||
sd->sc.data[SC_BLADESTOP] ||
sd->sc.data[SC_CURSEDCIRCLE_ATKER] ||
sd->sc.data[SC_CURSEDCIRCLE_TARGET]))
return;
[/CODE]

For the free moving:
unit.c
Find @ 916:
[CODE]
|| sc->data[SC_MAGNETICFIELD]
|| sc->data[SC__MANHOLE]
|| (sc->data[SC_FEAR] && sc->data[SC_FEAR]->val2 > 0)
[/CODE]
Add below:
[CODE]
|| sc->data[SC_CURSEDCIRCLE_TARGET]
|| sc->data[SC_CURSEDCIRCLE_ATKER]
[/CODE]

This code will prevent the free moving while the user and the attacker are in cursed circle effect, but the monsters will bypass the non attack side.... Its all i can do for you

Hercules Elf Bot - Apr 28, 2012 4:21

Originally posted by [b]zandotc[/b]
Thank you...

Hercules Elf Bot - Apr 28, 2012 4:50

Originally posted by [b]Igniz[/b]
/no1

Hercules Elf Bot - Apr 28, 2012 5:04

Originally posted by [b]zandotc[/b]
Solved... Monster Dont Atack...
In mob.c

Find:
[size="2"][color="#008000"][size="2"][color="#008000"]// Abnormalities[/color][/size][/color][/size]

[size="2"][color="#0000ff"][size="2"][color="#0000ff"]if[/color][/size][/color][/size][size="2"](( md->sc.opt1 > 0 && md->sc.opt1 != OPT1_STONEWAIT && md->sc.opt1 != OPT1_BURNING ) || md->sc.data[SC_BLADESTOP])[/size]
[size="2"]{ [/size]
[size="2"][color="#008000"][size="2"][color="#008000"]//Should reset targets.[/color][/size][/color][/size]
[size="2"]md->target_id = md->attacked_id = 0;[/size]

[size="2"][color="#0000ff"][size="2"][color="#0000ff"]return[/color][/size][/color][/size] [size="2"][color="#0000ff"][size="2"][color="#0000ff"]false[/color][/size][/color][/size][size="2"];[/size]
[size="2"]}[/size]


Change:
[size="2"][color="#008000"][size="2"][color="#008000"]// Abnormalities //by zandotc[/color][/size][/color][/size]

[size="2"][color="#0000ff"][size="2"][color="#0000ff"]if[/color][/size][/color][/size][size="2"]( (md->sc.opt1 > 0 && md->sc.opt1 != OPT1_STONEWAIT && md->sc.opt1 != OPT1_BURNING) ||[/size]
[size="2"]md->sc.data[SC_BLADESTOP] || md->sc.data[SC_DEEPSLEEP] || md->sc.data[SC__MANHOLE] || md->sc.data[SC_CURSEDCIRCLE_TARGET] )[/size]
[size="2"]{ [/size]
[size="2"][color="#008000"][size="2"][color="#008000"]//Should reset targets.[/color][/size][/color][/size]
[size="2"]md->target_id = md->attacked_id = 0;[/size]

[size="2"][color="#0000ff"][size="2"][color="#0000ff"]return[/color][/size][/color][/size] [size="2"][color="#0000ff"][size="2"][color="#0000ff"]false[/color][/size][/color][/size][size="2"];[/size]
[size="2"]}[/size]

This post has been edited by zandotc on Apr 28, 2012 5:14

Hercules Elf Bot - Apr 28, 2012 12:55

Originally posted by [b]Igniz[/b]
That was my second option to fix that bug xD. Nvm, thanks for confirm it /no1

Hercules Elf Bot - May 2, 2012 2:56

Originally posted by [b]GM Takumirai[/b]
- is this the correct fix ?

Hercules Elf Bot - May 2, 2012 4:31

Originally posted by [b]Ind[/b]
Fixed the attacking issue on [rev=16040] the moving issue is being dealt here: http://rathena.org/board/tracker/issue-5484-cursed-circle-caster-movement/