mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
Fix ^cast summoncorpse
This commit is contained in:
+9
-10
@@ -9644,16 +9644,15 @@ bool Bot::CastChecks(uint16 spell_id, Mob* tar, uint16 spell_type, bool precheck
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
spells[spell_id].target_type == ST_Self &&
|
||||
tar != this &&
|
||||
(
|
||||
spell_type != BotSpellTypes::SummonCorpse ||
|
||||
RuleB(Bots, AllowCommandedSummonCorpse)
|
||||
)
|
||||
) {
|
||||
LogBotSpellChecksDetail("{} says, 'Cancelling cast of {} on {} due to ST_Self.'", GetCleanName(), GetSpellName(spell_id), tar->GetCleanName());
|
||||
return false;
|
||||
if (spells[spell_id].target_type == ST_Self && tar != this) {
|
||||
if (spell_type == BotSpellTypes::SummonCorpse && RuleB(Bots, AllowCommandedSummonCorpse)) {
|
||||
// Don't cancel (Summon Corpse is allowed)
|
||||
}
|
||||
else {
|
||||
LogBotSpellChecksDetail("{} says, 'Cancelling cast of {} on {} due to ST_Self.'", GetCleanName(), GetSpellName(spell_id), tar->GetCleanName());
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user