| Age | Commit message (Collapse) | Author |
|
This function is used in many scripts to find the nearest enemy within the given distance.
However, it had an implicit limit to the ATTACK_DISTANCE. so in many case the "dist" was in fact just ignored.
In other case, the ATTACK_DISTANCE is required. So 2 functions are necessary to avoid ambiguities.
The refactoring is the split of the function in 2: SelectNearestTarget and SelectNearestTargetInAttackDistance.
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
*totally destroyed m_creature, use "me" for future coding
--HG--
branch : trunk
|
|
"( " --> "("
" )" --> ")"
--HG--
branch : trunk
|
|
"if(" --> "if ("
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
with a C++ cast(reinterpret_cast) and with a type check(isSummon()).
This function is like ToPlayer(), ToTotem(), etc.
This commit is like ede831bdd6f0cff481acc33f269fa7f8c78befd4 / r7496:
http://code.google.com/p/trinitycore/source/detail?r=ede831bdd6f0cff481acc33f269fa7f8c78befd4
As a result, this commit has the advantages and the "disadvantages" too, like r7496.
Please try to be polite if this commit causes some crashes.
--HG--
branch : trunk
|
|
Added const Creature* ToCreature()
--HG--
branch : trunk
|
|
should close #995 issue
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget
--HG--
branch : trunk
|
|
support set to type=12
--HG--
branch : trunk
|
|
change defines by enums, by Tartalo
*Fix Acherus Flightmaster for Alliance, by MrSmite
*Fix The Party's Over achievement (Prince Taldaram) & Implement Good Grief achievement (Maiden of Grief), by Tartalo
*Fix certaint things entering the threat list and never leaving, bugging mob's HP regeneration (ie: Priest's Lightwell).. again. Thanks Gyullo.
--HG--
branch : trunk
|
|
properly now), thanks Gyullo
--HG--
branch : trunk
|
|
when they should), found by Gyullo and tested by Manuel
--HG--
branch : trunk
|
|
MoveSeekAssistance is replace by MoveChase immediately. Thanks to totoro
--HG--
branch : trunk
|
|
refill the demolishers.
*Other script-related fixes.
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
attacking.
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
(SPELL_AURA_INITIALIZE_IMAGES)
*Handle CMSG_GET_MIRRORIMAGE_DATA opcode.
*Save Minions follow angle to allow themmoving in a formation
*Improvements in SpellAI: correctly evade and select attack target for creatures without threat list
*Use SpellAI instead of PetAI for not controllable guardians
*Only guardians with SUMMON_TYPE_PET are controllable now
*Add script and template data for Mirror Image.
*Thanks to Drahy for help.
--HG--
branch : trunk
|
|
*fix a typo breaking procflags on aura remove - shattered barrier and master of subtlety work again
--HG--
branch : trunk
|
|
* Fix typo in 3910_world.sql, spotted by irish
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
scripts may cause crash using new function.
--HG--
branch : trunk
|
|
*r983: Add additional checks for zoneInCombat-function.
*r984: Remove two useless functions, cleanup some code. - The most part of the patch skipped.
*r985: Clean up some code and prevent Spark from doing certain actions if in certain areas
*r986: Remove most EventAI code - Skip this patch
*r987: Correct and remove now obsolete documentation. - Skip: delete EventAI.txt
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
getmangos.org
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|