Bootz
f1ccb83dc0
REPO: Code-style change
...
* Fixed pUnit-unit
2011-10-07 10:48:56 -05:00
Rat
e23fe1845f
Core/SmartAI: Updated SMART_ACTION_RESPAWN_TARGET, should work for GOs as intented. Param1 is to set GO respawn time.
2011-10-07 14:12:09 +02:00
Shauren
2ff1c28c4c
Scripts/Icecrown Citadel
...
* The Lich King
2011-10-05 20:48:34 +02:00
Shauren
8a3ced48c1
Core/Scripts: Limited possible phase number for EventMap to prevent overflows
2011-10-05 16:43:43 +02:00
Nay
8373e6c32e
Core/Creature: Do not attack non-combat pets.
...
Fixes an issue where non-combat pets were aggroing other creatures
2011-10-01 16:57:10 +01:00
Nay
0f7d9e4837
Core/SAI: Fix an issue where SAI was ignoring civilian and passive unit flags
...
Closes #2526
Disclaimer: This was not thoroughly tested; report any issue caused by this change.
2011-10-01 16:29:23 +01:00
Spp
b16d2245bb
Cosmetic: Multiple cosmetic changes
...
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp
9e517c963b
Cosmetic: Replace "* )" with "*)" and "* /*" with "* /*"
2011-09-29 09:32:55 +02:00
Machiavelli
18665d19b4
Core/Scripts: Add an additional parameter to DoZoneInCombat to define the max range to find a target in to engage (instead of hard coded 50 yards).
2011-09-28 11:49:25 +02:00
Machiavelli
88d30aaa65
Merge pull request #3174 from Souler/pull
...
Scripts/Ulduar: Make Ignis enter evade mode if pulled out from his fight area.
2011-09-28 01:32:33 -07:00
Shocker
6dc09248fd
Merge pull request #3162 from megamage/master
...
Fix incorrect logic in PetAI. Solve #3155 .
2011-09-26 06:44:33 -07:00
Shauren
b07cc3751f
Core/Scripts: Added NULL checks to new target selectors, threat references aren't guaranteed to be valid always, also added (default true) player typeid check to NonTankTargetSelector
2011-09-24 23:30:11 +02:00
Shauren
da0229da8f
Core/Scripts: Implemented 2 new target selectors, one specialized for spells, checking auras, range and attributes; and the other is a very simple non-tank selection what is sufficient for most cases
2011-09-24 19:40:57 +02:00
Souler
99c63e86ae
Scripts/Ulduar: Make XT-002 and Ignis enter evade mode if pulled out from their fight areas.
...
Also implement a default case for EnterEvadeIfOutOfCombatArea.
2011-09-22 22:14:52 +02:00
megamage
738f94eed3
Fix incorrect logic in PetAI. Solve #3155 .
2011-09-21 12:53:29 -04:00
Rat
0ab9dd3f9f
Core/SmartAI: Re-apply accidentally removed crash fix, whoops
2011-09-20 17:56:47 +02:00
Rat
41ad855bdf
Core/SmartAI: fixed SMART_ACTION_SOUND, note: target(s) must be player(s)
...
Signed-off-by: Rat <[email protected] >
2011-09-20 17:46:40 +02:00
Shauren
80800def40
Core/Scripts: Reverted part of 7afb179185, fixes selecting random target starting at given position
...
Closes #3127
2011-09-20 09:03:12 +02:00
megamage
c9a4efdf8f
Fix crash caused by invalid talker in SmartScript. Solve #3082 .
2011-09-19 09:24:59 -04:00
Shauren
a11bee31c3
Core/SmartAI: Corrected validation check for SAI action summon, type parameter
2011-09-19 14:41:21 +02:00
QAston
fe25ce4fa3
Core/AI: Replace many Unit::IsHostileTo with Unit::IsValidAttackTarget or Creature::canCreatureAttack.
2011-09-17 00:56:59 +02:00
QAston
c0b1823524
Core/Entities: Replace Unit::canAttack usage with more accurate Unit::IsValidAttackTarget
2011-09-16 23:49:31 +02:00
Shocker
7afb179185
Misc/Util: Add a template function for returning a random element from any container
2011-09-15 21:28:40 +03:00
Spp
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02:00
QAston
ec7da6f911
Core/ScriptedAI: remove ScriptedAI::CanCast function which is not functioning properly (compare that func with Spell::CheckCast to see how it should work) and is unused. Closes #2275 .
2011-09-12 00:20:37 +02:00
Nay
dc123820ad
Core/Spells: Correct a DBC mistake in Improved Stings (R2)
2011-09-06 18:12:09 +01:00
Spp-
b7882e0fa8
Partial revert of fcf58e7 (both check performed inside IsInMeleeRange)
2011-09-06 10:36:20 +02:00
Shauren
f13f32c972
Core/Achievements: Award normal mode achievements when instance was done on heroic mode
2011-09-05 15:21:37 +02:00
Nay
3ccfb5fefb
Core/SAI: SMART_ACTION_FLEE: print flee emote if param1 is set
2011-09-04 18:51:16 +01:00
Spp-
aa85553bfd
Core: Crash fix (TemporarySummon), remove some warnings and some other minor changes
...
- "const uint64" and "uint64 const" --> uint64
- Add some info in LFGDungeonEntry
- Move some definitions from ".h" files and move to ".cpp"
2011-08-30 13:46:36 +02:00
Spp-
fcf58e7062
Core/AI: Fix a crash in UnitAI
2011-08-30 13:44:14 +02:00
Nay
fac814c87b
Core/SAI: SMART_ACTION_SET_FACTION validation should check FactionTemplate(.dbc) and not Faction.
2011-08-26 17:26:51 +01:00
Spp-
85164d2876
Core: Some cosmetic changes and minor optimizations
2011-08-26 09:41:33 +02:00
Chaplain
fb27848510
Core: Clean up here and there.
...
*replase postfix iterator increment\decrement with prefix in cycles
*replase strlen(*char) != 0 with *char[0] != '\0'
*replase strlen(rStr.c_str()) with rStr.length()
2011-08-23 18:09:08 +03:00
Fredi Machado
73b1448f29
Core/AI: English correction thanks u2blah for pointing
2011-08-21 00:07:38 -03:00
Fredi Machado
78e10e9cd0
Core/AI: Cleaning up hungarian notation
2011-08-20 20:31:31 -03:00
Lopin
1bbab51284
Core/Pets: When pet attacks, owner should be in combat as well. Closes #2601
2011-08-19 14:52:11 +02:00
Fredi Machado
0b64d726c2
Core/AI: Code style and cleanups
2011-08-18 14:55:59 -03:00
QAston
a077a26aa5
Core/Spells: update the core to the changes from 1fb1988d46 . To make your custom code work with those changes simply lookup the value of Targets enum value from prev rev, and update the name in your code.
2011-08-16 19:44:18 +02:00
QAston
73bbc3aca8
Core/Spells: Update some targeting related attribute definitions to make them more clear and consistent.
2011-08-16 16:06:21 +02:00
tobmaps
2056af63f0
Core/Spells: Fix typo in b0fe236265 , thx A-Metaphysical-Drama
2011-08-05 01:46:35 +07:00
Spp
7e53a73059
Core/Vehicles: Remove Vehicle.h dependency from other header files
2011-08-03 12:28:42 +02:00
Spp-
8572d5d0e9
Partial revert of fcdd4d7
2011-08-03 08:27:11 +02:00
Spp-
fcdd4d784f
Core/Transport: Minor optimization in LoadTransports (And some cosmetic changes here and there in other files)
2011-08-03 08:18:24 +02:00
Spp-
c69b149d7e
Core: Typo fix introduced in previous commit (:S)
2011-08-01 14:57:30 +02:00
Spp-
079f292b15
Core: Some more missing changes from previous commit (Pass by const reference for simple objects replaced with pass by value). Also fix unintended change
2011-08-01 14:51:44 +02:00
Spp-
acd0fc79f6
Core: Pass by const reference for simple objects replaced with pass by value
2011-08-01 14:23:27 +02:00
Machiavelli
58f10c74f7
Core/Spells: Change low level bool triggered with bitmask TriggerCastFlags to better manipulate the behaviour of certain triggered spells.
2011-07-31 21:58:25 +02:00
Shauren
b9a6e2333c
Core/Spells: Removed implicit casts from SpellImplicitTargetInfo, fixed copypaste mistakes and one crash
2011-07-27 12:35:59 +02:00
Spp-
fa50c0a464
Fix some warnings here and there
2011-07-27 11:00:39 +02:00