Add missing "count" for mob skills
Fixes mass seduce. Thanks xinyifly.
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user