Trazom62
eccf5bf547
Refactor Creature::SelectNearestTarget(float dist)
...
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
2010-04-25 12:59:27 +02:00
Spp
74dd02d024
Remove LOTS of compile warnings
...
--HG--
branch : trunk
2010-04-19 09:26:37 +02:00
Rat
6bcb297de4
*code cleanup
...
*totally destroyed m_creature, use "me" for future coding
--HG--
branch : trunk
2010-04-14 23:07:41 +02:00
Spp
49d05ba9aa
Code style (game + scripts only):
...
"( " --> "("
" )" --> ")"
--HG--
branch : trunk
2010-04-07 22:59:46 +02:00
Spp
d19e127080
Code style (game + scripts only):
...
"if(" --> "if ("
--HG--
branch : trunk
2010-04-07 19:14:10 +02:00
Spp
b27ce42704
Code Style: Remove trailing spaces
...
--HG--
branch : trunk
2010-04-07 18:09:10 +02:00
Anubisss
ce8cc85dfa
Make a function(ToTempSummon()) which can convert Creature to TempSummon 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
2010-03-27 16:08:14 +01:00
raczman
07f3b91426
Some Creature* casts moved to new ToCreature.
...
Added const Creature* ToCreature()
--HG--
branch : trunk
2010-03-07 18:30:53 +01:00
silver1ce
efb123f4f7
prevent stack overflow caused by MoveInLineOfSight calls
...
should close #995 issue
--HG--
branch : trunk
2010-03-06 18:18:32 +02:00
Xanadu
a5d1bc77ab
A great purge of obsolete macros.
...
--HG--
branch : trunk
2010-02-05 00:31:28 +01:00
n0n4m3
99f66a6bc9
Updated copyright for new year.
...
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
n0n4m3
67bc2fb4fe
Fixed typo
...
--HG--
branch : trunk
2009-12-17 06:58:19 +01:00
maximius
3f338cc1c3
*Massive cleanup redux.
...
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24
*Backed out changeset 3be01fb200a5
...
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
...
*Fix a possible crash in Spell::DoAllEffectOnTarget
--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
Biglad
a6329701e2
* Fix exploit with non-combat pets, realy make them not fight, requires DB support set to type=12
...
--HG--
branch : trunk
2009-10-09 10:55:50 +01:00
maximius
dd84dfd56d
*Utgarde Pinnacle: Svala fixes - Fix some crashes, complete ritual code and 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
2009-10-06 13:16:10 -07:00
maximius
10231efc0f
*Revert 5675/43c0c883c44d back to 4821/9d0967884f0b way (seems to work properly now), thanks Gyullo
...
--HG--
branch : trunk
2009-09-27 15:52:17 -07:00
maximius
88d632d153
*Disable commit 4821 / 9d0967884f0b (caused some NPCs to not regenerate HP when they should), found by Gyullo and tested by Manuel
...
--HG--
branch : trunk
2009-09-15 19:47:18 -07:00
megamage
ad1acedea7
*Use updatecombatstate to replace updatevictim. This should fix the bug of MoveSeekAssistance is replace by MoveChase immediately. Thanks to totoro
...
--HG--
branch : trunk
2009-08-31 13:56:26 -05:00
megamage
ab5f515f21
*Update flame levi script. Allow player to shoot down pyrite container and refill the demolishers.
...
*Other script-related fixes.
--HG--
branch : trunk
2009-08-28 11:26:20 -05:00
megamage
d91903e5b1
*Fix the behavior of mob assistance.
...
--HG--
branch : trunk
2009-08-27 13:54:57 -05:00
megamage
0dd6fa751f
*Fix the bug that sometimes assisting mobs just chase the attacker without attacking.
...
--HG--
branch : trunk
2009-08-24 11:38:49 -05:00
megamage
1ee90e1022
*Update vehicle system. Make vehicle a seperate class from creature.
...
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage
39accddb5f
*Let all accessories enterevademode when vehicle enter evade mode.
...
--HG--
branch : trunk
2009-08-22 21:25:35 -05:00
megamage
2d4dac0711
*Try to fix the bug of mobs' chain aggro.
...
--HG--
branch : trunk
2009-08-20 16:12:23 -05:00
megamage
658538a092
*Some update of vehicle.
...
--HG--
branch : trunk
2009-08-08 11:57:51 -05:00
megamage
9952786d14
*Also aggro player-controlled units in dozoneincombat.
...
--HG--
branch : trunk
2009-08-08 11:56:54 -05:00
QAston
2ff21d4cef
*Implement Aura Type 247 (SPELL_AURA_CLONE_CASTER) and 279 (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
2009-07-22 17:10:30 +02:00
QAston
2120bc0d30
*Fix a bug that creatures with owner chase their enemies after death.
...
*fix a typo breaking procflags on aura remove - shattered barrier and master of subtlety work again
--HG--
branch : trunk
2009-07-13 18:05:53 +02:00
Machiavelli
6eaf6e962a
* Change name of recently added scriptAI functions to better reflect purpose
...
* Fix typo in 3910_world.sql, spotted by irish
--HG--
branch : trunk
2009-06-11 17:54:59 +02:00
megamage
853432b201
*Fix a bug that creature ignore LOS in assistance case.
...
--HG--
branch : trunk
2009-06-09 19:55:15 -05:00
megamage
5aa9fdb556
*Still use the old updatevictim functions for most scripts because some old scripts may cause crash using new function.
...
--HG--
branch : trunk
2009-06-05 14:37:15 -05:00
Anubisss
4ce92ed6fa
*Merge SD2.
...
*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
2009-05-27 21:30:03 +02:00
megamage
239919abb2
*Check reactstate in UpdateVictim.
...
--HG--
branch : trunk
2009-05-21 17:19:10 -05:00
megamage
6473e94358
*Update Naxx scripts. Now only Kelthuzad is incompleted
...
--HG--
branch : trunk
2009-05-20 11:44:38 -05:00
megamage
a922f36da5
*Update script for Loatheb.
...
--HG--
branch : trunk
2009-05-17 23:27:51 -05:00
megamage
c583767ad6
*Update gluth script.
...
--HG--
branch : trunk
2009-05-16 16:52:57 -05:00
megamage
819326f286
*Update some instance script functions.
...
--HG--
branch : trunk
2009-05-16 14:49:30 -05:00
megamage
ff7f023ff1
*Merge.
...
--HG--
branch : trunk
2009-05-15 13:57:10 -05:00
megamage
8994cbe081
*Update some script functions.
...
--HG--
branch : trunk
2009-05-13 10:54:11 -05:00
Muhaha
62c5720227
* avoid loot/exp when the mobs are killed by npc. Authore: KAPATEJIb @ getmangos.org
...
--HG--
branch : trunk
2009-05-13 10:34:55 +02:00
megamage
df4e8b456b
*Move MoveFollow owner from MoveTargetedHome to enterevademode.
...
--HG--
branch : trunk
2009-05-12 10:11:54 -05:00
megamage
f631b2a2d6
*Update creature AI functions.
...
--HG--
branch : trunk
2009-05-11 11:46:48 -05:00
megamage
82f886e3c1
*Update AI scripts. Use better default AI.
...
--HG--
branch : trunk
2009-05-10 22:48:22 -05:00
megamage
55d52e22a8
*Fix build.
...
--HG--
branch : trunk
2009-05-10 16:31:43 -05:00
megamage
dcf41256dd
*Move some AI functions to core. No real change.
...
--HG--
branch : trunk
2009-05-10 16:07:49 -05:00
megamage
40a8e6d3ab
*Rename some script functions (no real change).
...
--HG--
branch : trunk
2009-05-10 14:29:28 -05:00
megamage
08a0c543d1
*Fix some typos of script functions.
...
--HG--
branch : trunk
2009-05-09 14:08:11 -05:00
megamage
f4e8654337
*Update creature AI functions
...
--HG--
branch : trunk
2009-05-06 00:05:54 -05:00