* Convert SCRIPT_COMMAND_* defines to enum. Make comments for values up-to-date.

* Cleanup ScriptsProcess method. Move repeating parts of code to inline helper methods.
* Improve SCRIPT_COMMAND_CAST_SPELL command. You can specify triggered attribute when datalong2 = 4 by making dataint negative.
* Improve SCRIPT_COMMAND_KILL command. Now, if source is not a creature, it tries to use target object instead.

--HG--
branch : trunk
This commit is contained in:
azazel committed 2010-08-05 00:55:10 +06:00
1 parent 96fa91034f
commit f3eab91102
3 files changed
+491 -750

No files matched your search

File diff suppressed because it is too large. Load diff