mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7666] For heroic mode creature use AIName from normal mode version in same way as done for ScriptName.
Also at creature templates loading check that AIName/ScriptName not set for heroic mode creature versions.
This commit is contained in:
parent
1ebf1a5ba4
commit
721e005b84
6 changed files with 25 additions and 9 deletions
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
int CreatureEventAI::Permissible(const Creature *creature)
|
||||
{
|
||||
if( creature->GetCreatureInfo()->AIName == "EventAI" )
|
||||
if( creature->GetAIName() == "EventAI" )
|
||||
return PERMIT_BASE_SPECIAL;
|
||||
return PERMIT_BASE_NO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue