mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 06:28:22 +00:00
Add Buff infrastructure to go through different logic paths from different patches (#5073)
This commit is contained in:
@@ -87,7 +87,7 @@ void bot_command_blocked_buffs(Client* c, const Seperator* sep)
|
||||
bool remove = false;
|
||||
bool list = false;
|
||||
bool wipe = false;
|
||||
uint16 spell_id;
|
||||
int32 spell_id;
|
||||
|
||||
if (!arg1.compare("add")) {
|
||||
if (!sep->IsNumber(2) || !IsValidSpell(atoi(sep->arg[2])) || !IsBeneficialSpell(atoi(sep->arg[2]))) {
|
||||
@@ -325,7 +325,7 @@ void bot_command_blocked_pet_buffs(Client* c, const Seperator* sep)
|
||||
bool remove = false;
|
||||
bool list = false;
|
||||
bool wipe = false;
|
||||
uint16 spell_id;
|
||||
int32 spell_id;
|
||||
|
||||
if (!arg1.compare("add")) {
|
||||
if (!sep->IsNumber(2) || !IsValidSpell(atoi(sep->arg[2])) || !IsBeneficialSpell(atoi(sep->arg[2]))) {
|
||||
|
||||
@@ -177,7 +177,7 @@ void bot_command_cast(Client* c, const Seperator* sep)
|
||||
bool aa_type = false;
|
||||
int aa_id = 0;
|
||||
bool by_spell_id = false;
|
||||
uint16 chosen_spell_id = UINT16_MAX;
|
||||
int32 chosen_spell_id = -1;
|
||||
|
||||
if (!arg1.compare("aa") || !arg1.compare("harmtouch") || !arg1.compare("layonhands")) {
|
||||
if (!RuleB(Bots, AllowCastAAs)) {
|
||||
@@ -536,7 +536,7 @@ void bot_command_cast(Client* c, const Seperator* sep)
|
||||
|
||||
AA::Rank* temp_rank = nullptr;
|
||||
AA::Rank*& rank = temp_rank;
|
||||
uint16 spell_id = bot_iter->GetSpellByAA(aa_id, rank);
|
||||
int32 spell_id = bot_iter->GetSpellByAA(aa_id, rank);
|
||||
|
||||
if (!IsValidSpell(spell_id)) {
|
||||
continue;
|
||||
|
||||
@@ -85,7 +85,7 @@ void bot_command_discipline(Client* c, const Seperator* sep)
|
||||
bool aggressive = false;
|
||||
bool defensive = false;
|
||||
Mob* tar = c->GetTarget();
|
||||
uint16 spell_id = UINT16_MAX;
|
||||
int32 spell_id = -1;
|
||||
|
||||
if (!arg1.compare("aggressive")) {
|
||||
aggressive = true;
|
||||
|
||||
Reference in New Issue
Block a user