Compare commits

...

3 Commits

Author SHA1 Message Date
aleos
b759efef25 Properly remove movement restriction
* Remove the movement restriction from Longing for Freedom when it becomes active with an Ensemble skill.
2023-10-13 15:32:41 -04:00
aleos
3df537e2a8 Fixes Longing for Freedom for real 2023-10-10 08:57:37 -04:00
aleos
0e50ba64d9 Fixes Longing for Freedom making players stuck
* Fixes #7777.
* Fixes Longing for Freedom making players not be able to walk after songs have ended.
Thanks to @XanKriegor1!
2023-10-04 19:19:00 -04:00
2 changed files with 7 additions and 0 deletions

View File

@ -1702,6 +1702,8 @@ Body:
CalcFlags:
Speed: true
Aspd: true
States:
NoMove: true
- Status: Hermode
Icon: EFST_HERMODE
DurationLookup: CG_HERMODE

View File

@ -5412,6 +5412,11 @@ void status_calc_state( struct block_list *bl, status_change *sc, std::bitset<SC
|| (sc->getSCE(SC_CRYSTALIZE) && bl->type != BL_MOB)
)
sc->cant.move += (start ? 1 : ((sc->cant.move) ? -1 : 0));
#ifndef RENEWAL
// Remove movement restriction when Longing for Freedom becomes active with an Ensemble skill.
if (start && sc->getSCE(SC_DANCING) && sc->getSCE(SC_DANCING)->val4 && sc->getSCE(SC_LONGING))
sc->cant.move = 0;
#endif
}
// Can't use skills