Do not apply owner CHANGEBODY AbnormalType effects to summon.
Thanks to nasseka.
This commit is contained in:
@@ -28,6 +28,7 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
import org.l2jmobius.gameserver.model.holders.ItemHolder;
|
||||
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.model.skill.AbnormalType;
|
||||
import org.l2jmobius.gameserver.model.skill.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
|
||||
@@ -108,6 +109,11 @@ public class Summon extends AbstractEffect
|
||||
for (BuffInfo effect : player.getEffectList().getEffects())
|
||||
{
|
||||
final Skill sk = effect.getSkill();
|
||||
if (sk.getAbnormalType() == AbnormalType.CHANGEBODY)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!sk.isBad() && !sk.isTransformation())
|
||||
{
|
||||
sk.applyEffects(player, summon, false, effect.getTime());
|
||||
|
Reference in New Issue
Block a user