mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
*Having to cast this seems silly to me. Oh well, farewell, const-ness!
--HG-- branch : trunk
This commit is contained in:
@@ -2193,7 +2193,7 @@ bool Creature::_IsTargetAcceptable(const Unit *target) const
|
||||
return true;
|
||||
|
||||
// if I'm not aggressive, the target is not acceptable
|
||||
if (GetReactState() != REACT_AGGRESSIVE)
|
||||
if (((Creature*)this)->GetReactState() != REACT_AGGRESSIVE)
|
||||
return false;
|
||||
|
||||
// if I'm hostile towards the target, the target is acceptable
|
||||
|
||||
Reference in New Issue
Block a user