[Bug Fix] Fix #cast defaulting to cast time (#3617)

# Notes
- Defaulted to using cast time instead of instant.
This commit is contained in:
Alex King
2023-10-13 21:12:34 -04:00
committed by GitHub
parent 9884c442e9
commit 565baec675
2 changed files with 2 additions and 9 deletions
+2 -7
View File
@@ -31,13 +31,8 @@ void command_castspell(Client *c, const Seperator *sep)
return;
}
const bool can_instant_cast = c->Admin() >= commandInstacast;
bool instant_cast = false;
if (can_instant_cast && sep->IsNumber(2)) {
instant_cast = Strings::ToBool(sep->arg[2]);
}
const uint16 target_id = t->GetID();
const bool instant_cast = sep->IsNumber(2) ? Strings::ToBool(sep->arg[2]) : true;
const uint16 target_id = t->GetID();
if (instant_cast) {
c->SpellFinished(spell_id, t);