Commit Graph

75 Commits

Author SHA1 Message Date
megamage
184c75247b *Try to fix the bug that stealth spells cause crash.
--HG--
branch : trunk
2008-11-26 23:10:02 -06:00
megamage
28355d886d *Fix the bug that taunted creatures stop updateAI.
*Do not let invisible creatures enterevademode if invisible aura is not permanent.
*Update procflag sql. By DiSlord.

--HG--
branch : trunk
2008-11-26 22:17:27 -06:00
megamage
da6c516fdf *Procflag patch by DiSlord.
--HG--
branch : trunk
2008-11-26 15:14:03 -06:00
megamage
77b753b452 *Fix the bug that neutral creatures do not fight back.
--HG--
branch : trunk
2008-11-26 11:41:03 -06:00
megamage
9bbf3e9493 *Fix build.
*Fix the bug that janalai summons too many adds.

--HG--
branch : trunk
2008-11-25 21:25:52 -06:00
megamage
99cf79bdf7 *Do not let Steady shot pause autoshot timer.
--HG--
branch : trunk
2008-11-25 17:58:06 -06:00
megamage
f6ea784eda *Update to Mangos 6848. Source: Mangos.
--HG--
branch : trunk
2008-11-25 16:36:50 -06:00
megamage
7312c5034e *Seperate owner speed and pet speed.
--HG--
branch : trunk
2008-11-24 15:59:02 -06:00
megamage
8d687761bc *Creatures with the same faction should always be friendly to each other. This fix the bug that creatures with the same faction fight earch other.
*Allow "chain effect" when creatures call assistance.

--HG--
branch : trunk
2008-11-23 13:58:06 -06:00
megamage
f064caa5cb *Send correct spell damage log to client (damage should include resist, do not know if should include absorb).
--HG--
branch : trunk
2008-11-22 13:59:45 -06:00
megamage
f29f2e6333 *Update to Mangos 6842. Source: Mangos.
--HG--
branch : trunk
2008-11-22 09:51:35 -06:00
megamage
6a0ad5da50 *Add UNIT_FLAG_NOT_ATTACKABLE_2. Not attackable, but can be hit by entry-target spells (I guess).
--HG--
branch : trunk
2008-11-22 00:31:24 -06:00
gvcoman
0632084857 * Added missing part of mangos merge on interrupt channeling on aura cancel
* Removed hacks attempting to do the above only for possessing or farsight spells
* Moved summon as possessed unsummoning into more general area in Spell::cancel
* Added SQL updates for steam tonk and tonk mine scripts

--HG--
branch : trunk
2008-11-21 21:00:45 -05:00
megamage
32485bc5d1 Merge with 284 (54b0e67d97fe).
--HG--
branch : trunk
2008-11-21 19:49:54 -06:00
megamage
fa667cf450 *Alterac Valley. By Bogie and Balrok. Note: some core contents are modified. Will fix them later. Some sql are disabled because of possible conflict with offical DB. Use them at your own risk.
--HG--
branch : trunk
2008-11-21 19:45:49 -06:00
gvcoman
ae8a27bbb7 Merged commit 269 (5f0e38da128a).
--HG--
branch : trunk
2008-11-21 14:34:05 -05:00
megamage
71707df1de *Let creature search nearby target before enter evade mode
*Add function canStartAttack to reduce code in MoveInLineOfSight
*Fix a bug that cancelling bind sight auras may crash the server

--HG--
branch : trunk
2008-11-21 10:07:11 -06:00
megamage
5528b7c512 *Fix the bug that updatepacket is not sent to players.
*TODO: move creature::update to map::update. This requires that move activeobjectlist to map.

--HG--
branch : trunk
2008-11-20 20:28:17 -06:00
gvcoman
4495efa1ae * Don't allow pets to attack in melee if owner is pacified. This applies for possessed "pets" as well.
* Use proper spell ID in unsummoning possessed units on channeling interrupt.
* Allow only once to init pet bar for CharmInfo
* Export CharmInfo to be available to scripts
* Allow to disable the melee attack command when initializing the pet action bar

--HG--
branch : trunk
2008-11-20 20:27:04 -05:00
megamage
2c95ee4b31 *Add m_isAggressive. Only aggressive creatures will call AttackStart and MoveInLineOfSight.
*Set melee dmg school for summoned creatures.
*Fix some compiling errors.

--HG--
branch : trunk
2008-11-20 18:54:50 -06:00
megamage
182c997573 *Re-commit some reverted patch: aura stacking check. By QAston.
--HG--
branch : trunk
2008-11-20 18:13:10 -06:00
megamage
ea68727d27 *Merge from Mangos. Add MapReference. Author: hunuza.
*Also re-commit the patches reverted in 255.

--HG--
branch : trunk
2008-11-18 19:40:06 -06:00
gvcoman
df6a8e5f8e Unsummon summon as possessed creatures on spell channeling interrupt.
--HG--
branch : trunk
2008-11-18 15:52:52 -05:00
KingPin
f3c48aa831 Backed out changeset 835660b317dc
--HG--
branch : trunk
2008-11-17 22:07:21 -06:00
megamage
474dc08c46 *Update aura stacking check. By QAston.
*Update pet autocast check. By qubix.

--HG--
branch : trunk
2008-11-17 17:59:33 -06:00
megamage
c95cb1003a *Do not let CC spells interrupt themselves.
--HG--
branch : trunk
2008-11-16 17:42:29 -06:00
megamage
7d3997f7d6 [svn] *Update Kalecgos script.
*Correctly select aura triggered spell target.
*Fix some scripts, should be pGOHello = &
*Fix a bug that some channel spells cannot be interrupted.
*Fix a bug that not-selectable creature cannot be hit by target_entry spells.
*If eventAI cannot find heroic flag and normal flag, enable event as default rather than disable it.

--HG--
branch : trunk
2008-11-15 15:09:22 -06:00
megamage
9ff33852b7 [svn] Fix the bug that next melee spells and auto shoot do not work.
--HG--
branch : trunk
2008-11-15 10:21:37 -06:00
gvcoman
5deef1bb59 [svn] * Reimplemented packet/update forwarding in more generic way
* Implemented far sight spells (Far Sight, Eagle Eye, etc) at unlimited range and properly forward packets
* Implemented bind vision spells (Mind Vision, etc) to forward packets at unlimited distance
* Implemented Sentry Totem (both vision switching/forwarding and alerting)
* Other misc possession fixes
* Added .bindsight and .unbindsight commands

Please test out the above spells (including Mind Control) and report any issues on the forums.

--HG--
branch : trunk
2008-11-14 20:40:35 -06:00
visagalis
3085e66b96 [svn] *** Source: MaNGOS ***
* Fixed english spelling in src/game/WorldSocket.h/cpp. Author: Derex
* [240_world.sql] Create new command .senditems and remove from moderator level command .sendmail possibility send items. Author: Vladimir
* Added new command: .sendmoney player "subject" "message" money - Sends a mail with money to a player. Author: fredi
* Correctly apply taken damage debufs/bonuses in cases non-physical melee damage. Author: Frankir
* Fix a crash in add friend/ignore callback. (check if player still logged in). Author: Hunuza
* Better args checking in .sendmoney command. Author: Vladimir

--HG--
branch : trunk
2008-11-14 17:50:48 -06:00
megamage
053b671cb5 [svn] Add UNIT_STAT_CASTING, and use it to update attack timer as test.
--HG--
branch : trunk
2008-11-14 17:42:00 -06:00
visagalis
d1e759479b [svn] *** Source: MaNGOS ***
* Fixed build extractor at Windows Vista. Author: Vladimir
* Fixed comment text and code indentifiers spelling. Author: Vladimir & Paradox.
* Access cached member lists in guild handlers instead of querying the DB. Author: Hunuza
* Small fixes in send/received packet and simple code cleanup also. Author: Vladimir
* Not output error at loading empty character_ticket table. Author: Vladimir
* Not reset display model at shapeshift aura remove if it not set at apply. Author: Arthorius
* Applied props to few files.

--HG--
branch : trunk
2008-11-14 16:28:45 -06:00
megamage
f6c1a7a93d [svn] Some update on channeled spells.
--HG--
branch : trunk
2008-11-14 14:19:23 -06:00
megamage
62e2949370 [svn] Fix a typo. This solve the bug that sap and other spells cannot be removed by damage.
The original author of AURA_INTERRUPT_FLAG_UNATTACKABLE is kamir86. Sorry for not mentioning that in rev 221.

--HG--
branch : trunk
2008-11-12 09:28:38 -06:00
megamage
d06130f88c [svn] Fix some aura_interrupt_flag to correctly remove auras.
Add interrupt_flag_unattackable. Source: mangos forum. Adapted by F636y623.
Add function CombatStart().

--HG--
branch : trunk
2008-11-11 17:49:51 -06:00
megamage
fd3fcb4612 [svn] Remove isVisible function. Check stealth and invisible in canAttack();
Use new remove aura by interrupt flag function.

--HG--
branch : trunk
2008-11-07 09:36:46 -06:00
megamage
31be467b2e [svn] Check combat reach in GetRandomContactPoint() until find out why some units have invalid combat reach.
--HG--
branch : trunk
2008-11-06 10:36:40 -06:00
megamage
43910434c5 [svn] Rewrite canSeeOrDetect function.
Minor change on trigger creatures.
Remove some unused hacks in scripts.

--HG--
branch : trunk
2008-11-06 10:27:58 -06:00
gvcoman
44bdb135f4 [svn] Implemented player on player and player on creature possession:
* Implemented packet and vision forwarding through possessed units
* Added new OnPossess script call alerting scripts on when possession is applied/removed
* Moved fall damage and fall under map calculations into the Player class
* Added new PossessedAI that is applied only while possession on creature is active
* Implemented summon possessed spell effect
* Fixed Eyes of the Beast

--HG--
branch : trunk
2008-11-05 20:51:05 -06:00
KingPin
8d331f2b10 [svn] * Avoid access to bag item prototype for getting bag size, use related item update field instead as more fast source.
* Better check client inventory pos data received in some client packets to skip invalid cases.
* Removed some unnecessary database queries.
* Make guid lookup for adding ignore async.
* Added two parameter versions of the AsyncQuery function
* Make queries for adding friends async. - Hunuza
* Replace some PQuery() calls with more simple Query() - Hunuza
* Mark spell as executed instead of deleteable to solve crash.
*** Source mangos.

**Its a big commit. so test with care... or without care.... whatever floats your boat.

--HG--
branch : trunk
2008-11-05 20:10:19 -06:00
megamage
404f72c7a2 [svn] Add some assert for better debug.
--HG--
branch : trunk
2008-11-05 16:37:52 -06:00
megamage
fc9a14a6cf [svn] Fix 146_world.sql. Do not use default for text. (Ignore this if you have successfully applied 146_world.sql)
Fix HandleAuraModIncreaseHealth, also increase current health.
Merge from Mangos:
2008-11-02 10:53:27 854e0d64e3410b2a1eff6d56705f8e42b4291534 Do not split self caused damage.
(PART) 2008-10-31 12:45:22 e56b671979623570acd358a9b99aa169be22ffba Move tamed pet creating code to new function.

--HG--
branch : trunk
2008-11-04 09:23:06 -06:00
megamage
94c03e3211 [svn] Fix hunter's frozen trap, half duration when pvp.
Use vector to store linked spell information to support multiple effects.

--HG--
branch : trunk
2008-11-03 17:20:35 -06:00
megamage
da5786249f [svn] Fix SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY spells, patch provided by QAston.
Fix priest's fear. Is breakable now.

--HG--
branch : trunk
2008-11-03 13:43:36 -06:00
megamage
b3bdc26a11 [svn] Set destination when calling CastSpell. This should fix the bug that seed of corruption does not work and "cannot find destination for spell" spams. Not sure if this is the correct way to fix it.
--HG--
branch : trunk
2008-11-03 08:29:04 -06:00
KingPin
d5beb2bbe9 [svn] *Implement new player conditions CONDITION_NO_AURA, CONDITION_ACTIVE_EVENT
* Default behaviour of pets for creatures changed to REACT_DEFENSIVE
* Disallowed sending wrapped items as COD
* Prevent loading and saving single target auras for pet in same way as already implemented for player
* Correctly limit use some flask types to zones.
* Fixed extracting common.MPQ under *nix
* Many small xleanups and fixes.
** mangos merge rev.

TEST REV so be careful of creepy crawly bugs!

--HG--
branch : trunk
2008-11-02 16:53:46 -06:00
megamage
37d0fdd0cd [svn] Check creature combat reach when loading db. This should fix the bug that finding random contact point causes crash.
--HG--
branch : trunk
2008-11-01 16:53:16 -05:00
megamage
d292b85d38 [svn] Fix teleport spells.
Fix cone spells.
Use interrupt_aura_flag to remove stealth/invisible/feign death auras.

--HG--
branch : trunk
2008-11-01 15:08:12 -05:00
megamage
e2eb694c57 [svn] Improve TargetedMovement (TODO: let mob find "near angle" rather than "random angle").
Delete a repeated check in instance canenter().
Fix some spell targets.
Add some sunwell spell sql.
Fix Magtheridons earthquake. (TODO: need to find out why soul transfer has no effect when casted by mobs)
Let Brutallus dual wield. Enable burn (still no script effect).
Quick fix for shadowmoon valley illidan quest crash (wait for author's fix).

--HG--
branch : trunk
2008-10-31 21:42:00 -05:00
megamage
1c3d4c40c3 [svn] Set target in combat even if spell does not hit target.
Call AI function only when spell hits target.
Move combat check from dealdamge to attackerstateupdate to remove redundant check.

--HG--
branch : trunk
2008-10-31 14:00:49 -05:00