Bug report moved to the new portal: Mmore.club
Detailed info: L2-scripts.com
Skype: Urchika

Our portfolio of solved reports: High Five
Our portfolio of solved reports: GOD
Our portfolio of solved reports: Classic

This forum is closed and open for viewing our work on bug reports for a long time. Thank you all !


 
 
Опции темы Опции просмотра
Prev Предыдущее сообщение   Следующее сообщение Next
Старый 05.04.2014, 12:33   #1
boulanger
L2-scripts клиент Classic 1.5 + ГЕО до 1 июля
 
Аватар для boulanger
 
Регистрация: 23.09.2013
Сообщений: 437
По умолчанию [CORE] FOrbiddenclassid condition not working on mobs

lindvior 10269 built 4 april 2014

if i use condition forbidenclassid in skills, the skill will not work on mobs, creatures

please let it work on mobs, or skills become useless if this condition is used in pve

Код:
package l2s.gameserver.stats.conditions;

import gnu.trove.set.hash.TIntHashSet;
import l2s.gameserver.model.Creature;
import l2s.gameserver.model.Player;
import l2s.gameserver.stats.Env;

public class ConditionTargetForbiddenClassId extends Condition
{
  private TIntHashSet _classIds = new TIntHashSet();

  public ConditionTargetForbiddenClassId(String[] ids)
  {
    for (String id : ids)
      this._classIds.add(Integer.parseInt(id));
  }

  protected boolean testImpl(Env env)
  {
    Creature target = env.target;
    if (!target.isPlayable())
      return false;
    return (!target.isPlayer()) || (!this._classIds.contains(target.getPlayer().getActiveClassId()));
  }
}
boulanger вне форума  
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Часовой пояс GMT +4, время: 07:30.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd. Перевод: zCarot