Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void castSpell(Player player, NPC victim, int spell) {
- int offsetY = (player.getLocation().getX() - victim.getLocation().getX()) * -1;//incorrect values
- int offsetX = (player.getLocation().getY() - victim.getLocation().getY()) * -1;//incorrect values
- //TODO: GRAPHICS & DELAYS.
- player.getWalkingQueue().reset();
- player.face(Location.create(victim.getLocation().getX(), victim.getLocation().getY(), victim.getLocation().getZ()));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement