1
This commit is contained in:
parent
1d8f252695
commit
7b31c0b327
@ -306,11 +306,12 @@ public:
|
||||
[this] (const a8::lisp::List& params) -> std::shared_ptr<a8::lisp::Value>
|
||||
{
|
||||
double result = 0.0f;
|
||||
if (context_.buff->GetCaster().Get() && params->size() > 3) {
|
||||
if (context_.buff->GetCaster().Get() && params->size() >= 3) {
|
||||
a8::lisp::Atom atom_x = std::any_cast<a8::lisp::Atom>(params->at(0)->value);
|
||||
a8::lisp::Atom atom_y = std::any_cast<a8::lisp::Atom>(params->at(1)->value);
|
||||
a8::lisp::Atom atom_z = std::any_cast<a8::lisp::Atom>(params->at(2)->value);
|
||||
a8::lisp::Atom atom_dur_time = std::any_cast<a8::lisp::Atom>(params->at(3)->value);
|
||||
glm::vec3 target_pos = glm::vec3(atom_x.val, atom_y.val, atom_z.val);
|
||||
context_.buff->GetCaster().Get()->SpecShot(target_pos, 1);
|
||||
} else {
|
||||
#ifdef MYDEBUG
|
||||
abort();
|
||||
|
Loading…
x
Reference in New Issue
Block a user