AlexDereka
27fabf7ace
[7745] Fixed gcc warnings.
2009-05-03 20:25:27 +04:00
ApoC
8168b0f2eb
[7742] Fix my prev. commit
...
Use already defined method for getting charmer or owner player or player itself.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-02 00:27:47 +02:00
ApoC
8e39ea0151
[7741] Allow pets/charmed NPCs to count master's spell cast conditions in quests.
...
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-02 00:15:59 +02:00
zhenya
8144f30199
[7730] Some optimizantion and code style.
...
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-04-29 01:05:21 +04:00
VladimirMangos
73db1cbe01
[7723] New AI call EnterCombat called at enter creature to combat (and re-enter if leave by some reason).
2009-04-27 03:40:50 +04:00
Trazom
7c0201f834
[7701] Move explicit healing repeating code to DealHeal functions.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 04:54:57 +04:00
VladimirMangos
fc0e1ecdf1
[7690] Move GetCreature/GetGameobject to class Map.
...
* This let get objects at map without reference to player or another object.
* Simplify future implementation for per-map storage for like objects
2009-04-20 19:08:13 +04:00
Lightguard
f97735f519
[7686] Implement aura SPELL_AURA_ADD_CASTER_HIT_TRIGGER (111).
...
Fixed bug with triggering SPELL_AURA_SPELL_MAGNET at non-magic casts (special weapon attacks).
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-19 00:42:16 +04:00
VladimirMangos
75d8c0b604
[7681] Check guid type before lookup request for seldom GO-caster case.
2009-04-17 17:04:51 +04:00
VladimirMangos
b4bc910d32
[7680] Fixed work spell effects with 17/0 spell target mode. Including many summon/teleport spells.
2009-04-17 16:44:20 +04:00
VladimirMangos
09c32b5429
[7678] Implement spell target mode 7 and cleanup target mode 17.
2009-04-17 13:41:36 +04:00
VladimirMangos
30d8be94ce
[7676] Fixed typo in [7675]
2009-04-16 18:51:25 +04:00
VladimirMangos
b576b2382d
[7675] Move spell targets in area selection code to function.
2009-04-16 18:41:35 +04:00
VladimirMangos
d85e95295d
[7668] Cleanup In CreatureAI function descriptions and AttackStart/AttackedBy use.
...
* Use AI::AttackStart calls only in case explicit request creature attack from core or AI code "attack it if can".
Like taunt, pet handler attack command.
* Use AI::AttackedBy for reaction at hostile action "do something at hostile action"
Like non-dot damage, swing, negative spell landing, or fade fear/etc.
And provided by default call AttackStart if no current target.
This fix some problems, like:
* Civilian will react propertly at attack by another creature (not pet or player).
* Will not cases (at least triggred by core) when attack target start run to attacker before any real hostile action apply.
2009-04-14 10:14:10 +04:00
VladimirMangos
fd26dbccda
[7605] Counting in ACHIEVEMENT_CRITERIA_TYPE_USE_ITEM only for not triggered item casted spells.
2009-04-02 23:40:39 +04:00
VladimirMangos
284b3a4865
[7601] Not check reagents for triggered spells, it checked and taken at triggered spell casting moment in original spell.
2009-04-02 05:13:52 +04:00
VladimirMangos
840d7d5e0a
[7588] Remove redendent GO support and switch back to original suggested by Lightguard version with Unit only case
2009-03-30 02:07:43 +04:00
VladimirMangos
e090283840
[7587] Hmm, lost change.
2009-03-30 00:51:40 +04:00
Lightguard
4717f68984
[7586] New caster AI::SpellHitTarget call at casted spell landing to target (player/creature/pet/go)
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-30 00:44:35 +04:00
arrai
5dd3ce31bc
[7576] Fixed spell range check for spells with minimal distances
2009-03-28 22:27:39 +01:00
DasMy
6762744452
[7570] respect UNIT_FIELD_COMBATREACH for spell range check
...
Signed-off-by: arrai <array.of.intellect@gmail.com>
2009-03-28 16:16:46 +01:00
arrai
4e66d61da9
[7557] Fixed triggered spells which ImplicitTarget is 0 like 50516 and ranks
2009-03-28 00:05:56 +01:00
Triply
3d6c7e59a7
[7522] Fixed typo in spell cast check code.
2009-03-23 11:26:29 +03:00
VladimirMangos
b14bf188c5
[7517] Add tick targets amount limitations to 48505 and ranks.
2009-03-22 06:51:09 +03:00
tomrus88
28dc20c6e2
Small code cleanup and partial merge with dev branch
2009-03-21 19:07:38 +03:00
VladimirMangos
7f125ce0c3
[7481] Implement special target selection for spell 57669.
...
Patch writed by kozelo, rechapa79 with active support from Lightguard.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-17 23:27:00 +03:00
Lightguard
bde638ace7
[7476] Implement druid's talent 61336.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
Some improvements added to patch. Related cleanups.
2009-03-17 01:27:16 +03:00
VladimirMangos
5d6cb5fe80
[7468] Convert pet cast check code to use SpellCastResult and finaly fix SPELL_CAST_OK value (255 custom value now)
2009-03-16 15:40:43 +03:00
VladimirMangos
0e987bf59e
[7467] Use SpellCastResult and replace CanCast by CheckCast.
...
Note: proper way to check: if(spell->CheckCast(...)==SPELL_CAST_OK)
2009-03-16 13:17:44 +03:00
VladimirMangos
c1b0e7d57a
[7466] Use SpellCastResult in SpellMgr.* functions
2009-03-16 11:21:28 +03:00
VladimirMangos
78879cc634
[7465] More fixes in SPELL_CAST_OK use.
2009-03-16 09:58:43 +03:00
VladimirMangos
4aaf758ab7
[7464] Move check of spell using for lock open to single function. Remove more hacks.
2009-03-16 00:43:53 +03:00
VladimirMangos
57c415f5e1
[7462] Lost part of "[7456] Batter check for items with delayed cooldown.".
...
Now not only mana/health potion will restore cooldown counting at combat end.
2009-03-15 23:36:42 +03:00
VladimirMangos
991376067d
Replace hack code in Spell::EffectOpenLock by generic way for check lock key items/skills
2009-03-15 02:56:06 +03:00
VladimirMangos
435b53c853
[7456] Batter check for items with delayed cooldown.
...
This must solve problems with some still stuck until relogin items.
2009-03-14 19:21:18 +03:00
VladimirMangos
3a5d59c0c7
[7450] Fixes and improvements in TARGET_BEHIND_VICTIM, SPELL_EFFECT_JUMP2, SPELL_EFFECT_TELEPORT_UNITS work.
...
* Move near teleport code for player/creature in Unit::NearTeleportTo
* Allow correctly seelct target and end point orientation for script casted spells with TARGET_BEHIND_VICTIM
* Replace use BuildTeleportAckMsg by BuildHeartBeatMsg for creature teleports. BuildTeleportAckMsg
set active mover for targeted player to affected creature and "freeze" player.
2009-03-13 17:08:10 +03:00
VladimirMangos
498ab2df07
[7442] Implement TARGET_DIRECTLY_FORWARD spell target mode.
...
It used in many cannon/rocket ike spells.
2009-03-11 22:50:15 +03:00
VladimirMangos
329fb3f9d1
[7440] Use server-side only zone info. Optimize related calles in case zone and subzone use.
...
This in some cases make some zones not explorable if it not have server side data in current maps
but not allow cheating with zone set from client.
2009-03-11 10:08:12 +03:00
Triply
6dcb0099d9
[7433] Fixed death runes counting.
...
Patch provided by Rastikzzz. Thx.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-09 22:57:35 +01:00
Triply
52696ce029
[7426] Mounted players now can capture tower point in Eye of Storm.
...
Renamed function isAllowUseBattleGroundObject to CanUseBattleGroundObject
Signed-off-by: Triply <triply@getmangos.com>
2009-03-09 16:40:13 +01:00
balrok
0babfec043
[7424] Codestyle: removed not needed \n in log output.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-09 14:20:10 +03:00
balrok
54f2dbefa0
[7403] much more unneeded includes removed
...
now i extended my script:
NAME="Chat"; ack -c $NAME | ack ":1$" | sed 's/:1//' | xargs /usr/bin/ack-grep -l "include \""$NAME".h\"" | xargs /bin/sed -i '/include "'$NAME'.h"/d'
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-08 02:22:17 +03:00
VladimirMangos
de51363151
[7365] Implement potion in combat delay proper work.
...
Original patch provided by miranda.conrado.
2009-03-01 11:33:08 +03:00
VladimirMangos
2b10d8fd71
[7364] Really implenent server-side anti-cheating cooldown check for spells with SPELL_ATTR_DISABLED_WHILE_ACTIVE.
...
Move apply cooldown for like spells to aura apply (GO registering for owner in GO summon spell case)
Store "infinity" cooldown for like spells, ignore it at save and reapply it at aura loading.
Note: one problem still exist for like spells: at loading/far teleport spell icon lost diabled state at client.
Need sedn some unknown data in SendInitialPacketsBeforeAddToMap or SendInitialPacketsAfterAddToMap for restore it state.
2009-03-01 10:21:47 +03:00
VladimirMangos
ed6123c804
[7363] Propertly set cooldown at server side for category spells at cooldown event send to client.
...
Also support item dependent cooldown set propetly at cooldown event send to client.
Last will used in follow potion cooldown delay in combat patch.
2009-03-01 10:14:45 +03:00
VladimirMangos
2b9eeb782e
[7362] Use IN_MILISECONDS where appropriate, other cleanups.
2009-03-01 05:22:56 +03:00
VladimirMangos
cea44af521
[7361] 2 lost cases from prev. commit.
2009-03-01 01:16:36 +03:00
VladimirMangos
b9326100ea
[7360] Use defines instead harcoded item prototype array sizes.
2009-03-01 00:32:37 +03:00
VladimirMangos
1fca6de6f3
[7349] Implement spell cast depenences from area/quest.aura state store in new table spell_area.
...
* It allow store requirenments: area, active or rewarded quest (until possible another quest not rewarded),
aura present at character, character race/gender.
* Listed spell can marked as auto-casted when fit requirents. In this case spell requirements checked at
zone/subzone update (and then resurraction also), quest start/reward, dummy aura apply.
* Old hardcoded lines for similar check removed from sources and required DB support for work now.
2009-02-27 11:15:36 +03:00
freghar
f04ec2b98b
[7272] Trailing whitespace cleaning
...
The "please use git diff --check before commit" thing.
Signed-off-by: freghar <compmancz@gmail.com>
2009-02-12 15:14:40 +01:00