Move skill_get_cooldown_ into pc_get_skillcooldown
and add a short src_doc description to promote his usage
(and avoid duplicate code)
Fix few cppcheck issues (variable scope optimisation mostly)
This commit is contained in:
lighta
2014-03-18 17:36:23 -04:00
parent 26aad11908
commit 51f26d43d2
11 changed files with 91 additions and 91 deletions

View File

@@ -9151,7 +9151,7 @@ BUILDIN_FUNC(monster)
for(i=0; i<amount; i++){ //not optimised
int mobid = mob_once_spawn(sd, m, x, y, str, class_, 1, event, size, ai);
mapreg_setreg(reference_uid(add_str("$@mobid"), i),mobid);
if(mobid) mapreg_setreg(reference_uid(add_str("$@mobid"), i),mobid);
}
return SCRIPT_CMD_SUCCESS;
}