mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
Implement more commanded types properly, move shadownight hate to hateline type...
Add incapacitated checks to casting logic and checks. Add candocombat zone check, summon other's corpse for bot, in/out combat spell checks, mute checks, level restriction
This commit is contained in:
+13
-2
@@ -803,7 +803,12 @@ bool Mob::DoCastingChecksOnTarget(bool check_on_casting, int32 spell_id, Mob *sp
|
||||
if (IsGroupSpell(spell_id)) {
|
||||
return true;
|
||||
} else if (spells[spell_id].target_type == ST_Self) {
|
||||
spell_target = this;
|
||||
if (IsBot() && (IsEffectInSpell(spell_id, SE_SummonCorpse) && RuleB(Bots, AllowCommandedSummonCorpse))) {
|
||||
//spell_target = this;
|
||||
}
|
||||
else {
|
||||
spell_target = this;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (IsGroupSpell(spell_id) && spell_target != this) {
|
||||
@@ -1951,7 +1956,13 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
|
||||
// single target spells
|
||||
case ST_Self:
|
||||
{
|
||||
spell_target = this;
|
||||
if (IsBot() && (IsEffectInSpell(spell_id, SE_SummonCorpse) && RuleB(Bots, AllowCommandedSummonCorpse))) {
|
||||
//spell_target = this;
|
||||
}
|
||||
else {
|
||||
spell_target = this;
|
||||
}
|
||||
|
||||
CastAction = SingleTarget;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user