Subv
a757187d7d
Fixed build
2012-06-03 16:39:10 -05:00
Subv
c7cb120449
Core/EventAI: Check AIName for EventAI scripts while loading them, avoid iterating again
2012-06-03 16:27:25 -05:00
Nay
cffcf633c3
Core/SAI: If spell id in SMART_ACTION_REMOVEAURASFROMSPELL is 0, remove all auras instead
...
Signed-off-by: Nay <[email protected] >
2012-06-02 14:29:15 +01:00
click
09c497bce2
Core/AI: Remove "enforced override"-check in the EventAI-manager in case of AI not being set to EventAI.
2012-06-02 14:43:07 +02:00
Discover-
1b77fd45fa
Core/SAI: Revert SMART_ACTION_SET_STAND_STATE from 013fe44b92, can be done with SMART_ACTION_SET_UNIT_FIELD_BYTES_1.
2012-05-30 01:00:55 +02:00
Discover-
154a030a68
Core/SAI: Fix previous commit. Thanks Shauren for notifying.
2012-05-29 12:29:10 +02:00
Discover-
013fe44b92
Core/SAI: Implement SMART_ACTION_SET_RANGED_MOVEMENT (79) and SMART_ACTION_SET_STAND_STATE (101). Updated wiki accordingly. These were required in order to properly be able to convert EventAI to SmartAI.
2012-05-29 12:19:46 +02:00
kaelima
84b420160d
Core/Pets: Some minor corrections to 3ea75c50d0
2012-05-24 16:29:43 +02:00
Kaelima
7a24a16e0b
Merge pull request #6438 from MrSmite/PetAI_autocast_fix
...
Fix pet autocast spells such as Furious Howl and Leap
2012-05-24 07:16:33 -07:00
MrSmite
3ea75c50d0
Fixes broken autocast spells such as Furious Howl and Leap to cast when on autocast and "attack" is clicked.
...
Fixes wrong check for spell cooldown and removes check for duration (some spells with duration such as poison are stackable)
2012-05-24 06:36:32 -04:00
kaelima
2ae0cfc8b6
Core/GuardAI: General cleanup and removed some unnecessary code.
2012-05-23 16:40:44 +02:00
Nay
66ce5a1148
And I forgot to Ctrl+S, yay me.
2012-05-20 16:36:44 +01:00
Nay
7661858ac0
Core/SAI: Few changes to db data validation for actions and event flags
2012-05-20 16:13:52 +01:00
kaelima
c3287fee06
Core/SmartAI:
...
- Improve an error msg in ProcessAction
- Allow dist/angle to be 0.0f and set default if negative when using SMART_ACTION_FOLLOW
- Some minor cleanup in Opcodes.cpp, all smsg's should have Handle_ServerSide
2012-05-19 13:04:58 +02:00
Chaplain
469ba0b0e7
Clean up for 58f63509cd
...
*restore const methods in spellauraeffects
*fix typo in Unit::CalculateMeleeDamage thx bytewarrior
*minor speed up in SpellInfo::GetMaxTicks() thx Warpten
*deleted duble ';;' thx bytewarrior
*speed up in SpellInfo::GetMaxTicks() thx goes to Vincent-Michael
2012-05-10 20:42:07 +03:00
Subv
50f2be538c
Fixed build
2012-04-19 18:43:41 -05:00
Subv
a5aba350a0
Core/SmartAI: Allow SMART_ACTION_SUMMON_GO and SMART_ACTION_SUMMON_CREATURE to use x, y, z and o parameters as relative offsets for a summoning position (example, summon creature 20 yards in front of the invoker)
...
Signed-off-by: Subv <[email protected] >
2012-04-19 18:33:25 -05:00
Shauren
4818c70dcb
Core/Spells: Removed unneeded phase check from spell casts, its already done in canSeeOrDetect for spells that need it. Probably more phase checks are not needed either
2012-04-18 22:27:40 +02:00
Shauren
a483eb5f11
Core/Scripts: Added possibility to remove phase setting from EventMap and an empty-checking method
2012-04-18 12:45:58 +02:00
Shauren
4f14693ef2
Core/Scripts: Corrected previous commit and added a few AI hooks to GameObjectAI
2012-04-14 18:26:16 +02:00
Shauren
a3bdaf7e6d
Core/Scripts: Added support for creating custom GameObjectAI classes, similar to how creature scripts work.
2012-04-14 17:49:51 +02:00
kaelima
71bf2684be
Core/Script: Use DoMeleeAttackIfReady in default ScriptedAI::UpdateAI method (fixes offhand attacks if not UpdateAI is overridden)
2012-04-12 17:53:52 +02:00
faramir118
e3f198ca56
couple wrong return types
2012-04-11 19:58:12 +02:00
kaelima
4c961ff393
Core/Scripts: Remove some unnecessary creature/player casts in scripts and do some safer casting in a silithus script
2012-04-09 14:28:46 +02:00
kaelima
49e24e2dfb
Core/Cleanup:
...
Mostly if(.. -> if (.. and for(.. -> for (..
but also some miscellaneous cleanup
2012-04-08 23:59:52 +02:00
Machiavelli
bc96df1aae
Core/Shared: Move container functions to shared project under Trinity::Container namespace. Also implement RandomResizeList which takes a predicate function as parameter.
...
Core/ScriptedAI: Extend SummonList::DoAction to take a predicate function as parameter and allow specifying a maximum number of units to be selected.
2012-04-08 17:40:05 +02:00
MrSmite
b843688fa8
PeAI update
...
* Better handle target selection for defensive pets. Adds triggers for when owner is damaged or begins attacking something.
* Defensive pets no longer run off as soon as a mob aggros the owner but rather at first damage to owner or owner first attack
* Pets on stay will continue to attack unless target unreachable
2012-04-06 12:26:45 -04:00
Shauren
b5dc7bc45b
Core/SmartScript: Fixed crashes with stored target lists
...
Closes #5786
2012-04-05 22:13:20 +02:00
Subv
6759bcab16
Core/SAI: Added a new event flag to allow events to NOT reset when the creature evades (SMART_EVENT_FLAG_DONT_RESET)
...
Closes #5568
Signed-off-by: Subv <[email protected] >
2012-04-05 12:10:56 -05:00
Gyx
a1c4786ba0
Core/Script: Code style and some rewriting.
...
MoveInLineOfSight(Unit* unit) -> MoveInLineOfSight(Unit* who)
Signed-off-by: Gyx <[email protected] >
2012-04-01 19:56:41 +08:00
Nay
92d3548f0b
Core/DBLayer: Even more types fixes...
2012-03-29 15:08:17 +01:00
Gyx
360014856d
Core/Game: Code style.
...
Signed-off-by: Gyx <[email protected] >
2012-03-29 13:42:04 +08:00
Shocker
a08cb234c0
Merge pull request #5918 from GyxTom/master
...
Core/Misc: Various cleanups
2012-03-28 18:00:42 -07:00
click
cf29214364
Core/AI: Fix some wannabe-invinceable typos here and there...
2012-03-29 00:47:56 +02:00
kandera
d94608777c
Core/Scripts: Fix invincibility hp level for smart scripts.
2012-03-28 19:21:40 -03:00
Gyx
1544b208da
Core/Game: Code style again.
...
Signed-off-by: Gyx <[email protected] >
2012-03-28 20:00:29 +08:00
Gyx
72cdcbfced
Core/Game: Code style.
...
Signed-off-by: Gyx <[email protected] >
2012-03-28 19:11:50 +08:00
Nay
729f419af1
Core/DBLayer: Correct few more wrong read types (No. 4)
...
DB/World: Some consistency in the ints "length" field (not really a length)
All world dbs checked
2012-03-27 21:36:16 +01:00
Nay
a92820b51c
Core/DBLayer: Correct few more wrong read types (No. 1)
...
DB/World: Some consistency in the ints "length" field (not really a length)
From A to D world tables verified; missing all the others
int(11) -> int32
unsigned int(10) -> uint32
mediumint(8) -> int32
unsigned mediumint(8) -> uint32
smallint(6) -> int16
unsigned smallint(5) -> uint16
tinyint(4) -> int8
unsigned tinyint(3) -> uint8
2012-03-27 00:43:56 +01:00
Shauren
e64d1d43dd
Core: Add proper cleanup at exit for smart script waypoints and instance encounters
2012-03-24 18:42:35 +01:00
Subv
ac4536327f
Core/SAI: Allow using SMART_TARGET_ACTION_INVOKER with SMART_ACTION_MOVE_TO_POS
...
Signed-off-by: Subv <[email protected] >
2012-03-21 19:37:21 -05:00
Shauren
90cacb9ab9
Core/SmartScript: Fixed possible crashes when attempting to use StoreTargetList with a the same list already stored on the same id
2012-03-19 11:43:50 +01:00
Shocker
91314b4cc3
Merge pull request #5743 from MrSmite/PetAI_2
...
Core/Pets: Fix the Attack button to stop flashing after combat end
2012-03-16 15:01:57 -07:00
MrSmite
e0da136c36
Pet UI - Fix for "Attack" continues to flash after combat end
...
Closes 5551
2012-03-16 16:02:18 -04:00
MrSmite
a26e145ae7
Fix for pets moving from stay during combat
...
Closes #5612
2012-03-16 15:53:07 -04:00
Machiavelli
03a24a84e4
Core/Units:
...
- Implement UNIT_FIELD_HOVERHEIGHT (requires DB data). This field, sent in update object packet, will determine the height at which a creature hovers if it has movementflag_hover applied. Note that hovering will now update the server-sided z-coordinate by the value of this field, and that all subsequent positional updates to the client will need to send z coordinate MINUS the hover height offset, or the hoverheight will be visually doubled client side.
- Correct our usage of movementflag_flying, movementflag_can_fly, movementflag_hover and movementflag_disable_gravity (previously levitate), and how they relate to InhabitType in the database. This fixes "flying creatures on steroids" bug (wings flapping too fast), and potentially a lot of visual issues in AI scripts. Note that a lot of scripts still set wrong movementflags, these need to be fixed on a case by case basis.
- Send correct packets for SPELL_AURA_FEATHER_FALL, SPELL_AURA_WATER_WALK and SPELL_AURA_HOVER apply/unapply.
- Send correct packet contents for movement update in Unit::SetSpeed.
- Misc. cleanup in affected scripts.
2012-03-12 00:53:45 +01:00
Nay
2b2d054f64
R.I.P SimpleAI
...
- Convert SimpleAI to (DB) SmartAI
- Spell ids corrected (and completed some of the scripts)
- Random cleanup (code style) in some scripts
2012-03-11 16:59:17 +00:00
Shauren
f85fdbebe7
Core/DBC: Remove store getters (useless since we don't have scripts as external dll)
2012-03-10 20:53:26 +01:00
Discover-
c4fd6b89db
Core/SAI: SMART_ACTION_MOVE_TO_POS will now have param1 as PointId. This means you can now (properly) use SMART_EVENT_MOVEMENTINFORM when reaching the point you make the NPC move to.
...
Wiki is updated accordingly.
2012-03-03 23:41:29 +01:00
Subv
b0985b4d5f
Core/Misc: Remove redundant implicit template types in some std::make_pair calls. Should allow the build in Visual Studio 2011
2012-03-02 17:14:14 -05:00