mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 18:41:29 +00:00
[Bug Fix] Fix #cast defaulting to cast time (#3617)
# Notes - Defaulted to using cast time instead of instant.
This commit is contained in:
parent
9884c442e9
commit
565baec675
@ -250,9 +250,7 @@ enum {
|
|||||||
commandMovecharSelfOnly = 80, //below this == only self move allowed
|
commandMovecharSelfOnly = 80, //below this == only self move allowed
|
||||||
commandMovecharToSpecials = 200, //ability to send people to cshom/load zones
|
commandMovecharToSpecials = 200, //ability to send people to cshom/load zones
|
||||||
commandCastSpecials = 100, //can cast special spells
|
commandCastSpecials = 100, //can cast special spells
|
||||||
commandInstacast = 100, //insta-cast all #casted spells
|
|
||||||
commandDoAnimOthers = 100, //can #doanim on others
|
commandDoAnimOthers = 100, //can #doanim on others
|
||||||
commandLockZones = 101, //can lock or unlock zones
|
|
||||||
commandEditPlayerCorpses = 150, //can Edit Player Corpses
|
commandEditPlayerCorpses = 150, //can Edit Player Corpses
|
||||||
commandInterrogateInv = 100, //below this == only log on error state and self-only target dump
|
commandInterrogateInv = 100, //below this == only log on error state and self-only target dump
|
||||||
commandInvSnapshot = 150 //ability to clear/restore snapshots
|
commandInvSnapshot = 150 //ability to clear/restore snapshots
|
||||||
|
|||||||
@ -31,13 +31,8 @@ void command_castspell(Client *c, const Seperator *sep)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool can_instant_cast = c->Admin() >= commandInstacast;
|
const bool instant_cast = sep->IsNumber(2) ? Strings::ToBool(sep->arg[2]) : true;
|
||||||
bool instant_cast = false;
|
const uint16 target_id = t->GetID();
|
||||||
if (can_instant_cast && sep->IsNumber(2)) {
|
|
||||||
instant_cast = Strings::ToBool(sep->arg[2]);
|
|
||||||
}
|
|
||||||
|
|
||||||
const uint16 target_id = t->GetID();
|
|
||||||
|
|
||||||
if (instant_cast) {
|
if (instant_cast) {
|
||||||
c->SpellFinished(spell_id, t);
|
c->SpellFinished(spell_id, t);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user