Add missing "count" for mob skills

Fixes mass seduce. Thanks xinyifly.
This commit is contained in:
P0nk
2021-07-14 21:58:09 +02:00
parent 0d887dc5dc
commit c37278c650
2 changed files with 8 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ public class MobSkill {
private int skillId, skillLevel, mpCon;
private List<Integer> toSummon = new ArrayList<>();
private int spawnEffect, hp, x, y;
private int spawnEffect, hp, x, y, count;
private long duration, cooltime;
private float prop;
private Point lt, rb;
@@ -81,6 +81,10 @@ public class MobSkill {
this.y = y;
}
public void setCount(int count) {
this.count = count;
}
public void setDuration(long duration) {
this.duration = duration;
}
@@ -326,7 +330,7 @@ public class MobSkill {
for (MapleCharacter character : getPlayersInRange(monster)) {
if (!character.hasActiveBuff(2321005)) { // holy shield
if (disease.equals(MapleDisease.SEDUCE)) {
if (i < 10) {
if (i < count) {
character.giveDebuff(MapleDisease.SEDUCE, this);
i++;
}