mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 07:17:16 +00:00
cleanup ST_Self logic in CastChecks
This commit is contained in:
+4
-4
@@ -9541,10 +9541,10 @@ bool Bot::CastChecks(uint16 spell_id, Mob* tar, uint16 spellType, bool doPrechec
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (spells[spell_id].target_type == ST_Self && tar != this) {
|
if (spells[spell_id].target_type == ST_Self && tar != this) {
|
||||||
if (IsEffectInSpell(spell_id, SE_SummonCorpse) && RuleB(Bots, AllowCommandedSummonCorpse)) {
|
if (
|
||||||
//tar = this;
|
!IsEffectInSpell(spell_id, SE_SummonCorpse) ||
|
||||||
}
|
(IsEffectInSpell(spell_id, SE_SummonCorpse) && !RuleB(Bots, AllowCommandedSummonCorpse))
|
||||||
else {
|
) {
|
||||||
tar = this;
|
tar = this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user