mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8551] code cleanup
moved arena/battleground check from spell::checkcast to SpellMgr::GetSpellAllowedInLocationError also i adjusted some spell_fail-codes related to battleground cause a spell_fail_wrong_area always requires the areaid, else it would output "not in area %s" then we don't need to check for map->isarena() when player is already in an arena ---- in Spell.h i moved "isTargetableForAttack()" to the top - cause it was anyway used in every case of that switch and isTargetableForAttack for attack also checks for isAlive and isInFlight so this could get simplified
This commit is contained in:
parent
9143f19bef
commit
5385b385bc
4 changed files with 39 additions and 56 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8550"
|
||||
#define REVISION_NR "8551"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue