exity Posted July 19, 2012 Posted July 19, 2012 Is there anyway to prevent pets/summons to get buffed by anyways?
0 ^Wyatt Posted July 19, 2012 Posted July 19, 2012 Yes, maybe something like that: Index: java/com/l2jserver/gameserver/model/L2Effect.java =================================================================== --- java/com/l2jserver/gameserver/model/L2Effect.java (revision 321) +++ java/com/l2jserver/gameserver/model/L2Effect.java (working copy) @@ -482,6 +482,8 @@ public final void scheduleEffect() { + if(getEffected() instanceof L2SummonInstance) + return; switch (_state) { case CREATED:
0 ^Wyatt Posted July 19, 2012 Posted July 19, 2012 Or something like that (sorry for double post): Index: java/com/l2jserver/gameserver/model/L2Skill.java =================================================================== --- java/com/l2jserver/gameserver/model/L2Skill.java (revision 278) +++ java/com/l2jserver/gameserver/model/L2Skill.java (working copy) @@ -38,6 +38,7 @@ import com.l2jserver.gameserver.model.actor.instance.L2DoorInstance; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.actor.instance.L2SiegeFlagInstance; +import com.l2jserver.gameserver.model.actor.instance.L2SummonInstance; import com.l2jserver.gameserver.model.item.L2Armor; import com.l2jserver.gameserver.model.item.type.L2ArmorType; import com.l2jserver.gameserver.network.SystemMessageId; @@ -1638,7 +1639,7 @@ return _emptyEffectSet; // doors and siege flags cannot receive any effects - if (effected instanceof L2DoorInstance ||effected instanceof L2SiegeFlagInstance ) + if (effected instanceof L2DoorInstance ||effected instanceof L2SiegeFlagInstance || effected instanceof L2SummonInstance ) return _emptyEffectSet; if (effector != effected)
0 ^Wyatt Posted July 19, 2012 Posted July 19, 2012 It works thx alot. :) Lock it. Which of both answers did u try? np :p
Question
exity
Is there anyway to prevent pets/summons to get buffed by anyways?
5 answers to this question
Recommended Posts