Minor improvement for previous commit.
This commit is contained in:
@@ -53,6 +53,10 @@ public class Stun extends AbstractEffect
|
|||||||
public void onExit(BuffInfo info)
|
public void onExit(BuffInfo info)
|
||||||
{
|
{
|
||||||
final Creature effected = info.getEffected();
|
final Creature effected = info.getEffected();
|
||||||
|
if ((effected == null) || effected.isRaid())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
effected.stopStunning(false);
|
effected.stopStunning(false);
|
||||||
if (effected.isSummon())
|
if (effected.isSummon())
|
||||||
{
|
{
|
||||||
@@ -83,6 +87,6 @@ public class Stun extends AbstractEffect
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
info.getEffected().startStunning();
|
effected.startStunning();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -53,6 +53,10 @@ public class Stun extends AbstractEffect
|
|||||||
public void onExit(BuffInfo info)
|
public void onExit(BuffInfo info)
|
||||||
{
|
{
|
||||||
final Creature effected = info.getEffected();
|
final Creature effected = info.getEffected();
|
||||||
|
if ((effected == null) || effected.isRaid())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
effected.stopStunning(false);
|
effected.stopStunning(false);
|
||||||
if (effected.isSummon())
|
if (effected.isSummon())
|
||||||
{
|
{
|
||||||
@@ -83,6 +87,6 @@ public class Stun extends AbstractEffect
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
info.getEffected().startStunning();
|
effected.startStunning();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user