- Joined
- Oct 12, 2005
- Messages
- 1,304
- Reaction score
- 71
it works so meh
added updated version, i think it was bugging up cuz it was calling for 1 debuff at a time when multi debuffs were on char, only 1 would remove and others would bug the char.
V.2
added updated version, i think it was bugging up cuz it was calling for 1 debuff at a time when multi debuffs were on char, only 1 would remove and others would bug the char.
V.2
Code:
public void dispelDebuffs() {
List<MapleDisease> disease_ = new ArrayList<MapleDisease>();
for (MapleDisease disease : diseases) {
if (disease != null) {
disease_.add(disease);
client.getSession().write(MaplePacketCreator.cancelDebuff(disease_));
getMap().broadcastMessage(this, MaplePacketCreator.cancelForeignDebuff(this.id, disease_), false);
disease_.clear();
} else {
return;
}
}
this.diseases.clear();
}
Last edited:

