Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
55 good news though, a spell can now deal damage :p (except for the fact that the database does not get updated yet)
I also haven't made code yet so a spell can make an effect, or put the checks in to see if a character died.
I also need to think about if passing a turn is considered an action and if so if it would be the first thing in a turn or the last thing during a turn.
If I decide that it shouldn't be considered an action I need to decide how the onFirst/onLast abilities react to that if a card has both.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
67 well...to be honest, a lot of the problems I had that I wrote about where things I just never had to face before when working with PHP.
The not being able to read out of scope things? In JS I have that a lot of times, in Lua it also happens, in PHP though, this was the first time I had to do it (and even here I could have easily fixed worked around it).

The using a variable to get a certain thing out of an object? Again, first time in PHP but I use stuff like that plenty of times in Lua or JS.

Now, I am not saying PHP is good as it is not. The names in use for its functions are just bad. I mean eval() to execute a string? Or mt_rand()?