Core/AI: ported charm updates from 335

This commit is contained in:
Ovahlord committed 2021-09-16 16:48:07 +02:00
1 parent 346ffe6e91
commit 949f92e0a1
125 files changed
+691 -720

No files matched your search

+1 -3
View File
@@ -1638,10 +1638,8 @@ public:
if (!player)
return false;
Creature* target = handler->getSelectedCreature();
if (!target || !target->IsAIEnabled || !target->AI())
{
if (!target || !target->IsAIEnabled())
return false;
}
char* fill_str = args ? strtok((char*)args, " ") : nullptr;
char* duration_str = args ? strtok(nullptr, " ") : nullptr;