1
This commit is contained in:
parent
06630b8240
commit
faa5d82a2a
@ -845,7 +845,8 @@ void Creature::DoSkill(int skill_id,
|
|||||||
curr_skill_ = skill;
|
curr_skill_ = skill;
|
||||||
playing_skill = true;
|
playing_skill = true;
|
||||||
context_dir = skill_dir_;
|
context_dir = skill_dir_;
|
||||||
context_pos = GetMutablePos().AddGlmVec3(skill_dir_ * skill_distance_);
|
context_pos = GetPos();
|
||||||
|
context_pos.AddGlmVec3(skill_dir_ * skill_distance_);
|
||||||
CurrentSkill()->last_use_frameno = room->GetFrameNo();
|
CurrentSkill()->last_use_frameno = room->GetFrameNo();
|
||||||
skill->LockCastPhase();
|
skill->LockCastPhase();
|
||||||
if (CurrentSkill()->meta->skill_target() == kST_Self
|
if (CurrentSkill()->meta->skill_target() == kST_Self
|
||||||
|
@ -218,7 +218,6 @@ class Creature : public MoveableEntity
|
|||||||
void DecInventory(int slot_id, int num);
|
void DecInventory(int slot_id, int num);
|
||||||
std::array<Inventory, IS_END>& GetInventoryData() { return inventory_; };
|
std::array<Inventory, IS_END>& GetInventoryData() { return inventory_; };
|
||||||
virtual void _UpdateMove(int speed) {};
|
virtual void _UpdateMove(int speed) {};
|
||||||
virtual void Goto();
|
|
||||||
bool HasSpecMove();
|
bool HasSpecMove();
|
||||||
void _UpdateSpecMove();
|
void _UpdateSpecMove();
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "mt/macro.h"
|
#include "mt/macro.h"
|
||||||
#include "mtb/Player.h"
|
#include "mtb/Hero.h"
|
||||||
|
|
||||||
namespace mt
|
namespace mt
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user