mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[12017] Add support for getRace() of creatures. Thanks to vladimir for input
This commit is contained in:
parent
dfa35dafab
commit
fb3a990b13
6 changed files with 16 additions and 9 deletions
|
|
@ -4522,10 +4522,10 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32
|
|||
return false;
|
||||
}
|
||||
|
||||
if(raceMask)
|
||||
if (raceMask)
|
||||
{
|
||||
// not in expected race
|
||||
if(!player || !(raceMask & player->getRaceMask()))
|
||||
if (!(raceMask & player->getRaceMask()))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue