Prevents skill radius from impacting push back range

This commit is contained in:
Linus Probert 2019-05-14 09:00:59 +02:00
parent 2b743160aa
commit 8f21e8bfb2
1 changed files with 2 additions and 2 deletions

View File

@ -896,8 +896,8 @@ skill_erupt(Skill *skill, SkillData *data)
monster_push(r->monster,
player,
rm,
VEC2D((float) (i*lvl),
(float) (j*lvl))
VEC2D((float) ((i > 0 ? 1 : -1) * lvl),
(float) ((j > 0 ? 1 : -1) * lvl))
);
}
}