diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-05 23:01:06 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-05 23:01:06 +0000 |
commit | bc4983ea0bac63948d231446825ca4c00c3eeeee (patch) | |
tree | 83e9d2289a286c5fe863354c5f1b5158903042bd /src/map/status.c | |
parent | b3391c0862bcd0416145f24bfa5687d950eb9bea (diff) | |
download | hercules-bc4983ea0bac63948d231446825ca4c00c3eeeee.tar.gz hercules-bc4983ea0bac63948d231446825ca4c00c3eeeee.tar.bz2 hercules-bc4983ea0bac63948d231446825ca4c00c3eeeee.tar.xz hercules-bc4983ea0bac63948d231446825ca4c00c3eeeee.zip |
- Fixed a crash when using SL_SMA and the "combo" ain't ready.
- Hopefully fixed changing a mob's class causing them to get all sort of stat bonuses due to the mobs-level-up setting.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6994 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index 332fddc59..ec809ec60 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1006,6 +1006,7 @@ void status_calc_misc(struct status_data *status, int level) //Skotlex: Calculates the initial status for the given mob //first will only be false when the mob leveled up or got a GuardUp level. +//first&2: Class-change invoked. int status_calc_mob(struct mob_data* md, int first) { struct status_data *status; @@ -1014,7 +1015,7 @@ int status_calc_mob(struct mob_data* md, int first) if(first) { //Set basic level on respawn. - if (md->spawn) + if (md->spawn && !(flag&2)) md->level = md->spawn->level; else md->level = md->db->lv; // [Valaris] |