UnsummonServitor action should not work with pets.
Contributed by petryxa.
This commit is contained in:
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
L2J_Mobius_Classic_2.9.5_Saviors/dist/game/data/scripts/handlers/playeractions/UnsummonServitor.java
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/playeractions/UnsummonServitor.java
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/playeractions/UnsummonServitor.java
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -54,7 +54,7 @@ public class UnsummonServitor implements IPlayerActionHandler
|
||||
if (canUnsummon)
|
||||
{
|
||||
final WorldObject target = player.getTarget();
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player))
|
||||
if ((target != null) && target.isSummon() && (((Summon) target).getOwner() == player) && !target.isPet())
|
||||
{
|
||||
((Summon) target).unSummon(player);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user