Updated Ancient and Lunar home teleports to use the correct animation

This commit is contained in:
Swizey 2023-02-04 08:12:10 +00:00 committed by Ryan
parent 710671eb99
commit c112794ede
2 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ public final class AncientTeleportPlugin extends MagicSpell {
if (entity.getLocks().isTeleportLocked() || !super.meetsRequirements(entity, true, 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)) {
entity.getTeleporter().getCurrentTeleport().stop();
return false;

View file

@ -30,10 +30,10 @@ import org.rs09.consts.Items
class LunarListeners : SpellListener("lunar"), Commands {
override fun defineListeners() {
onCast(Lunar.HOME_TELEPORT, NONE) { 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, _ ->