mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-06 02:02:25 +00:00
Noudess: This makes newly spawned NPCs have a chance to cast
This commit is contained in:
parent
26213f9049
commit
40ebee9ff4
@ -1762,6 +1762,12 @@ void Mob::AI_Event_Engaged(Mob* attacker, bool iYellForHelp) {
|
|||||||
|
|
||||||
SetAppearance(eaStanding);
|
SetAppearance(eaStanding);
|
||||||
|
|
||||||
|
/*
|
||||||
|
Kick off auto cast timer
|
||||||
|
*/
|
||||||
|
if (this->IsNPC())
|
||||||
|
this->CastToNPC()->AIautocastspell_timer->Start(300, false);
|
||||||
|
|
||||||
if (iYellForHelp) {
|
if (iYellForHelp) {
|
||||||
if(IsPet()) {
|
if(IsPet()) {
|
||||||
GetOwner()->AI_Event_Engaged(attacker, iYellForHelp);
|
GetOwner()->AI_Event_Engaged(attacker, iYellForHelp);
|
||||||
|
|||||||
@ -420,6 +420,8 @@ public:
|
|||||||
|
|
||||||
bool IgnoreDespawn() { return ignore_despawn; }
|
bool IgnoreDespawn() { return ignore_despawn; }
|
||||||
|
|
||||||
|
std::unique_ptr<Timer> AIautocastspell_timer;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
const NPCType* NPCTypedata;
|
const NPCType* NPCTypedata;
|
||||||
@ -453,7 +455,7 @@ protected:
|
|||||||
|
|
||||||
uint32 npc_spells_id;
|
uint32 npc_spells_id;
|
||||||
uint8 casting_spell_AIindex;
|
uint8 casting_spell_AIindex;
|
||||||
std::unique_ptr<Timer> AIautocastspell_timer;
|
|
||||||
uint32* pDontCastBefore_casting_spell;
|
uint32* pDontCastBefore_casting_spell;
|
||||||
std::vector<AISpells_Struct> AIspells;
|
std::vector<AISpells_Struct> AIspells;
|
||||||
bool HasAISpell;
|
bool HasAISpell;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user