|
|
@ -8,6 +8,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
package engine.gameManager; |
|
|
|
package engine.gameManager; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.sun.corba.se.spi.orbutil.fsm.ActionBase; |
|
|
|
import engine.Enum.*; |
|
|
|
import engine.Enum.*; |
|
|
|
import engine.InterestManagement.HeightMap; |
|
|
|
import engine.InterestManagement.HeightMap; |
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
@ -27,6 +28,7 @@ import engine.net.client.ClientConnection; |
|
|
|
import engine.net.client.msg.*; |
|
|
|
import engine.net.client.msg.*; |
|
|
|
import engine.objects.*; |
|
|
|
import engine.objects.*; |
|
|
|
import engine.powers.*; |
|
|
|
import engine.powers.*; |
|
|
|
|
|
|
|
import engine.powers.effectmodifiers.AbstractEffectModifier; |
|
|
|
import engine.powers.poweractions.AbstractPowerAction; |
|
|
|
import engine.powers.poweractions.AbstractPowerAction; |
|
|
|
import engine.powers.poweractions.TrackPowerAction; |
|
|
|
import engine.powers.poweractions.TrackPowerAction; |
|
|
|
import engine.server.MBServerStatics; |
|
|
|
import engine.server.MBServerStatics; |
|
|
@ -276,6 +278,7 @@ public enum PowersManager { |
|
|
|
|
|
|
|
|
|
|
|
// get power
|
|
|
|
// get power
|
|
|
|
PowersBase pb = PowersManager.powersBaseByToken.get(msg.getPowerUsedID()); |
|
|
|
PowersBase pb = PowersManager.powersBaseByToken.get(msg.getPowerUsedID()); |
|
|
|
|
|
|
|
|
|
|
|
if (pb == null) { |
|
|
|
if (pb == null) { |
|
|
|
ChatManager.chatSayInfo(playerCharacter, |
|
|
|
ChatManager.chatSayInfo(playerCharacter, |
|
|
|
"This power is not implemented yet."); |
|
|
|
"This power is not implemented yet."); |
|
|
@ -287,6 +290,15 @@ public enum PowersManager { |
|
|
|
// return false;
|
|
|
|
// return false;
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//check for movement buffs while flying
|
|
|
|
|
|
|
|
if(playerCharacter.isFlying()) { |
|
|
|
|
|
|
|
for (ActionsBase ab : pb.getActions()) { |
|
|
|
|
|
|
|
if (ab.stackType.equalsIgnoreCase("MoveBuff")) { |
|
|
|
|
|
|
|
PlayerCharacter.GroundPlayer(playerCharacter); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (playerCharacter.getLastPower() != null) |
|
|
|
if (playerCharacter.getLastPower() != null) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|