- Fixed the new addeff structure not working well with SC_STONE (because SC_STONE is 0, which was by default not handled as a valid value).

- Added back the TF_MISS walking speed bonus to assassin type classes (how did that got lost?)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7583 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex
2006-07-08 18:24:39 +00:00
parent 104eeac167
commit 598e005ed4
4 changed files with 11 additions and 5 deletions

View File

@@ -1173,12 +1173,11 @@ static int pc_bonus_autospell(struct s_autospell *spell, int max, short id, shor
static int pc_bonus_addeff(struct s_addeffect *effect, int max, short id, short rate, short arrow_rate, unsigned char flag) {
int i;
for (i = 0; i < max && effect[i].id; i++) {
for (i = 0; i < max && effect[i].flag; i++) {
if (effect[i].id == id && effect[i].flag == flag)
{
effect[i].rate += rate;
effect[i].arrow_rate += rate;
effect[i].arrow_rate += arrow_rate;
return 1;
}
}