Add lull/aelull to ^cast

This commit is contained in:
nytmyr
2024-12-10 14:03:33 -06:00
parent 211908196e
commit f3e0fdae73
7 changed files with 30 additions and 3 deletions
+5 -2
View File
@@ -9878,6 +9878,7 @@ bool Bot::CanCastSpellType(uint16 spellType, uint16 spell_id, Mob* tar) {
}
break;
case BotSpellTypes::AELull:
case BotSpellTypes::Lull:
if (IsHarmonySpell(spell_id) && !HarmonySpellLevelCheck(spell_id, tar)) {
LogBotPreChecksDetail("{} says, 'Cancelling cast of {} on {} due to HarmonySpellLevelCheck.'", GetCleanName(), GetSpellName(spell_id), tar->GetCleanName()); //deleteme
@@ -11234,6 +11235,9 @@ uint16 Bot::GetSpellListSpellType(uint16 spellType) {
case BotSpellTypes::AELifetap:
case BotSpellTypes::Lifetap:
return BotSpellTypes::Lifetap;
case BotSpellTypes::AELull:
case BotSpellTypes::Lull:
return BotSpellTypes::Lull;
case BotSpellTypes::Charm:
case BotSpellTypes::Escape:
case BotSpellTypes::HateRedux:
@@ -11245,8 +11249,7 @@ uint16 Bot::GetSpellListSpellType(uint16 spellType) {
case BotSpellTypes::Pet:
case BotSpellTypes::PreCombatBuff:
case BotSpellTypes::PreCombatBuffSong:
case BotSpellTypes::Resurrect:
case BotSpellTypes::Lull:
case BotSpellTypes::Resurrect:
default:
return spellType;
}
+8
View File
@@ -268,6 +268,14 @@ void bot_command_cast(Client* c, const Seperator* sep)
return;
}
break;
case BotSpellTypes::AELull:
case BotSpellTypes::Lull:
if (!RuleB(Bots, AllowCommandedLull)) {
c->Message(Chat::Yellow, "This commanded type is currently disabled.");
return;
}
break;
case BotSpellTypes::SummonCorpse:
if (!RuleB(Bots, AllowCommandedSummonCorpse)) {
+1
View File
@@ -83,6 +83,7 @@ bool Bot::AICastSpell(Mob* tar, uint8 iChance, uint16 spellType, uint16 subTarge
}
break;
case BotSpellTypes::AELull:
case BotSpellTypes::Lull:
if (tar->GetSpecialAbility(SpecialAbility::PacifyImmunity)) {
return false;
+6
View File
@@ -8943,6 +8943,9 @@ std::string Mob::GetSpellTypeNameByID(uint16 spellType) {
case BotSpellTypes::SummonCorpse:
spellTypeName = "Summon Corpse";
break;
case BotSpellTypes::AELull:
spellTypeName = "AE Lull";
break;
default:
break;
}
@@ -9164,6 +9167,9 @@ std::string Mob::GetSpellTypeShortNameByID(uint16 spellType) {
case BotSpellTypes::SummonCorpse:
spellTypeName = "summoncorpse";
break;
case BotSpellTypes::AELull:
spellTypeName = "aelull";
break;
default:
break;
}