mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-19 12:48:20 +00:00
Cleanup DetermineSpellTargets->ST_Self for bot summon corpse
This commit is contained in:
+6
-8
@@ -1919,14 +1919,12 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
|
|||||||
// single target spells
|
// single target spells
|
||||||
case ST_Self:
|
case ST_Self:
|
||||||
{
|
{
|
||||||
if (
|
bool bot_can_summon_corpse = IsBot() &&
|
||||||
!(
|
IsEffectInSpell(spell_id, SE_SummonCorpse) &&
|
||||||
IsBot() &&
|
RuleB(Bots, AllowCommandedSummonCorpse);
|
||||||
IsEffectInSpell(spell_id, SE_SummonCorpse) &&
|
|
||||||
RuleB(Bots, AllowCommandedSummonCorpse)
|
if (!bot_can_summon_corpse) {
|
||||||
)
|
spell_target = this; // Summon corpse spells are self-only; bots need a fallthrough
|
||||||
) { // summon corpse spells are self only, bots need a fallthrough to summon corpses
|
|
||||||
spell_target = this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CastAction = SingleTarget;
|
CastAction = SingleTarget;
|
||||||
|
|||||||
Reference in New Issue
Block a user