Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void updateEffectIconsImpl()
- {
- Effect[] effects = getEffectList().getAllFirstEffects();
- Arrays.sort(effects, EffectsComparator.getInstance());
- PartySpelled ps = new PartySpelled(this, false);
- AbnormalStatusUpdate mi = new AbnormalStatusUpdate();
- for(Effect effect : effects)
- if(effect.isInUse())
- {
- if(effect.getStackType().equals(EffectTemplate.HP_RECOVER_CAST))
- sendPacket(new ShortBuffStatusUpdate(effect));
- else
- effect.addIcon(mi);
- if(_party != null)
- effect.addPartySpelledIcon(ps);
- }
- sendPacket(mi);
- if(_party != null)
- _party.broadCast(ps);
- if(isInOlympiadMode() && isOlympiadCompStart())
- {
- OlympiadGame olymp_game = _olympiadGame;
- if(olymp_game != null)
- {
- ExOlympiadSpelledInfo olympiadSpelledInfo = new ExOlympiadSpelledInfo();
- for(Effect effect : effects)
- if(effect != null && effect.isInUse())
- effect.addOlympiadSpelledIcon(this, olympiadSpelledInfo);
- if(olymp_game.getType() == CompType.CLASSED || olymp_game.getType() == CompType.NON_CLASSED)
- for(Player member : olymp_game.getTeamMembers(this))
- member.sendPacket(olympiadSpelledInfo);
- for(Player member : olymp_game.getSpectators())
- member.sendPacket(olympiadSpelledInfo);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement