mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
^cast adjustments for spellid casts
This commit is contained in:
@@ -11195,6 +11195,14 @@ bool Bot::AttemptForcedCastSpell(Mob* tar, uint16 spell_id) {
|
||||
tar = this;
|
||||
}
|
||||
|
||||
if ((IsCharmSpell(forcedSpellID) || IsPetSpell(forcedSpellID) && HasPet())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (IsResurrectSpell(forcedSpellID) && (!tar->IsCorpse() || !tar->CastToCorpse()->IsPlayerCorpse())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (IsBeneficialSpell(forcedSpellID)) {
|
||||
if (
|
||||
(tar->IsNPC() && !tar->GetOwner()) ||
|
||||
|
||||
Reference in New Issue
Block a user