Updated Ancient and Lunar home teleports to use the correct animation
This commit is contained in:
@@ -54,7 +54,7 @@ public final class AncientTeleportPlugin extends MagicSpell {
|
|||||||
if (entity.getLocks().isTeleportLocked() || !super.meetsRequirements(entity, true, false)) {
|
if (entity.getLocks().isTeleportLocked() || !super.meetsRequirements(entity, true, false)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (entity.getTeleporter().send(location.transform(0, RandomFunction.random(3), 0), getSpellId() == 24 ? TeleportType.HOME : TeleportType.ANCIENT)) {
|
if (entity.getTeleporter().send(location.transform(0, RandomFunction.random(3), 0), getSpellId() == 28 ? TeleportType.HOME : TeleportType.ANCIENT)) {
|
||||||
if (!super.meetsRequirements(entity, true, true)) {
|
if (!super.meetsRequirements(entity, true, true)) {
|
||||||
entity.getTeleporter().getCurrentTeleport().stop();
|
entity.getTeleporter().getCurrentTeleport().stop();
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ import org.rs09.consts.Items
|
|||||||
class LunarListeners : SpellListener("lunar"), Commands {
|
class LunarListeners : SpellListener("lunar"), Commands {
|
||||||
|
|
||||||
override fun defineListeners() {
|
override fun defineListeners() {
|
||||||
|
|
||||||
onCast(Lunar.HOME_TELEPORT, NONE) { player, _ ->
|
onCast(Lunar.HOME_TELEPORT, NONE) { player, _ ->
|
||||||
requires(player)
|
requires(player)
|
||||||
sendTeleport(player,0.0, Location.create(2100, 3914, 0))
|
player.teleporter.send(Location.create(2100, 3914, 0),TeleportManager.TeleportType.HOME)
|
||||||
|
setDelay(player,true)
|
||||||
}
|
}
|
||||||
|
|
||||||
onCast(Lunar.MOONCLAN_TELEPORT, NONE) { player, _ ->
|
onCast(Lunar.MOONCLAN_TELEPORT, NONE) { player, _ ->
|
||||||
|
|||||||
Reference in New Issue
Block a user